forked from google/starlark-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
starlark: remove allocs on Dict ranges for dictsEqual and write (goog…
…le#402) Drops Items() range in favour of looking through the hashtable list directly. This avoids an allocation, added a benchmark to verify. Old: Benchmark/bench_dict_equal-4 18782 61652 ns/op 57344 B/op 2 allocs/op New: Benchmark/bench_dict_equal-4 29802 39585 ns/op 0 B/op 0 allocs/op
- Loading branch information
1 parent
c8e9b32
commit 5411bad
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters