optimize set inter,union,diff

This commit is contained in:
finley
2023-05-08 23:07:19 +08:00
parent 6a7fb6a692
commit a266cc5aba
3 changed files with 121 additions and 218 deletions

View File

@@ -106,7 +106,7 @@ func TestSInter(t *testing.T) {
keys := make([]string, 0)
start := 0
for i := 0; i < 4; i++ {
key := utils.RandString(10)
key := utils.RandString(10) + strconv.Itoa(i)
keys = append(keys, key)
for j := start; j < size+start; j++ {
member := strconv.Itoa(j)