Commit Graph

13 Commits

Author SHA1 Message Date
finley
0e6d1ecf2e bug fix: concurrent dict for each 2023-03-07 08:08:21 +08:00
shining-brain
f255fac7fb addCount should only be executed when there is data insertion 2022-11-24 13:55:29 +08:00
Tianyi Zheng
672f0571ca refactor: fix variable names & remove unnecessary type conversion
- the name of the variable "shard" has been defined, and change variable "shard" `s name in the function to avoid the case of "Variable Shadowing"
- remove unnecessary type conversion "uint32(hashCode)"
2022-11-15 19:11:19 +08:00
zhengtianyi
fe07c8ce39 perf: shorten lock time & optimize map`s value type
- shorten the lock time of concurrent.go`s function "Put"
 - slightly optimize the value`s type of map concurrent.go`s function "RandomDistinctKeys" & avoid duplicate input the same map`s key

fix: uses the provided seed value to initialize the function rand, for fixing the generation of the same int in the case of multiple executions.

Limited ability, make it better~
2022-11-09 22:18:12 +08:00
finley
9da335811f tiny fixes 2022-08-20 23:25:26 +08:00
kun98
23a6f95c18 bugfix 2022-08-17 11:35:22 +08:00
hdt3213
38001a2d18 go lint 2021-11-08 23:24:43 +08:00
hdt3213
e91294bcf4 multi database 2021-09-05 18:57:02 +08:00
liyuxing
453fef5de1 ConcurrentDict Remove add decreaseCount 2021-07-01 13:27:52 +08:00
hdt3213
97d7b84276 go lint 2021-05-13 08:56:07 +08:00
hdt3213
fc39150740 add some unittest 2021-05-07 00:11:16 +08:00
hdt3213
9f3ac88b36 add some unittests and bug fix 2021-05-02 18:48:44 +08:00
hdt3213
f29298cc68 refactor project structure 2021-05-02 14:54:42 +08:00