summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-06-27 09:45:26 -0700
committer Colin Cross <ccross@android.com> 2023-06-27 11:07:55 -0700
commit48016d5a2f3d0a518de795e4eba6d899628a86bb (patch)
tree8a992e3f0cc0de46bbd8b3140c8fb8ed77e6543e /java/java_test.go
parentc85750bfe3d0ebadc5ef9051603464699c0a09fc (diff)
Fix FirstUniqueStrings after conversion to generics
The conversion of FirstUniqueStrings to be implemented on top of the generic firstUnique accidentally used a different threshold to switch from the list implementation to the map implementation. Modify the threshold of firstUnique to match the old value from FirstUniqueStrings now that it doesn't have the reflection overhead. While we're at it, also make firstUnique make a copy of the list, and make FirstUniqueStrings a pure wrapper around firstUnique. Test: BenchmarkFirstUniqueStrings Change-Id: Icc2febea663142c508ff2e4be65a8a68121631d5
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions