Source code analysis - Golang Map

Correlation constant parsing bucketCntBits = 3 // It represents bit bucketCnt = 1 << bucketCntBits // Represents a bucket(bmap) with a maximum storage of 8 key s loadFactorNum = 13 loadFactorDen = 2 // The load factor is calculated from these two factors (the load factor is related to when to trigger capacity expansion) maxKeySize ...

Posted by sufian on Sat, 18 Sep 2021 22:23:59 -0700

Analysis and generation of ShardingSphere statements

brief introduction In the previous article, we found a critical path code for converting logical SQL to real SQL. In this article, we will explore some details of statement parsing generation based on the previous article Source code analysis The code generated by the key parsing of the statement is as follows: @RequiredArgsConstructor publ ...

Posted by kaitan on Thu, 02 Sep 2021 17:44:03 -0700