You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 592e429
Browse filesBrowse the repository at this point in the historyBrowse files
[record_use] Cache hash codes in Expando instances (dart-lang#3150)
For dart-lang#3115, we want to store the depth of constant objects in an `Expando`, to avoid exponential runtime in deep constants.
We already use hashmaps/hashsets on constants, and computing the hashCode is currently already recursing. To make computing the hashcode of a large `Recordings` linear, cache the `hashCode`s in an `Expando`.
See the recommendation of this pattern in:
* dart-lang/language#2225
0 commit comments