mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:11:19 +00:00
438c1ed2ba
The methods to add to hash maps and hash sets are recursive: if the index needs to be rehashed then the same method is called again after rehashing. This CL nests the actual implementation in a private method that takes the full hashCode as an extra argument. No significant code size or run time changes are reported on our benchmarks. (Our benchmarks do not contain purposefully slow hashCodes.) Note that hashCode can be called again later if rehashing of the index is required on adding subsequent elements. Bug: https://github.com/dart-lang/sdk/issues/48948 Change-Id: Ia3ccff9e592d675b4922ac78c4aa7ee0287ecb50 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243623 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com> |
||
---|---|---|
.. | ||
concurrency | ||
vm |