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
This means that VMs will optimize it with hidden class optimizations in a way that is useful for objects but not a fair comparison if you intend to use it as an actual hash map. It would be better to use a random string or one with special characters in it so that VMs treat the object as a hash map instead of an object (which they would do in any real-world situation that you might use a Map).
The text was updated successfully, but these errors were encountered:
In the ES5 variant, the map test sets a fixed key on the object:
six-speed/tests/map-set/map-set.es5
Line 10 in dd4923f
This means that VMs will optimize it with hidden class optimizations in a way that is useful for objects but not a fair comparison if you intend to use it as an actual hash map. It would be better to use a random string or one with special characters in it so that VMs treat the object as a hash map instead of an object (which they would do in any real-world situation that you might use a Map).
The text was updated successfully, but these errors were encountered: