Skip to content

Commit

Permalink
update exp package
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarak Ben Youssef committed Jan 10, 2024
1 parent 53b59c2 commit 4482465
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.18

require (
github.com/fxamacker/circlehash v0.3.0
golang.org/x/exp v0.0.0-20221110155412-d0897a79cd37
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/fxamacker/circlehash v0.3.0 h1:XKdvTtIJV9t7DDUtsf0RIpC1OcxZtPbmgIH7ekx28WA=
github.com/fxamacker/circlehash v0.3.0/go.mod h1:3aq3OfVvsWtkWMb6A1owjOQFA+TLsD5FgJflnaQwtMM=
golang.org/x/exp v0.0.0-20221110155412-d0897a79cd37 h1:wKMvZzBFHbOCGvF2OmxR5Fqv/jDlkt7slnPz5ejEU8A=
golang.org/x/exp v0.0.0-20221110155412-d0897a79cd37/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc h1:ao2WRsKSzW6KuUY9IWPwWahcHCgR0s52IfwutMfEbdM=
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI=
4 changes: 2 additions & 2 deletions mph.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func Build(keys []string) *Table {
buckets = append(buckets, indexBucket{n, vals})
}
}
slices.SortFunc(buckets, func(a, b indexBucket) bool {
return len(a.vals) > len(b.vals)
slices.SortFunc(buckets, func(a, b indexBucket) int {
return len(a.vals) - len(b.vals)
})

occ := make([]bool, len(level1))
Expand Down

0 comments on commit 4482465

Please sign in to comment.