https://bugzilla.wikimedia.org/show_bug.cgi?id=53241

--- Comment #4 from Gabriel Wicke <[email protected]> ---
https://github.com/Benvie/harmony-collections/blob/master/harmony-collections.js

seems to be the only one of the contenders so far that uses native objects for
primitive keys (and linear search for object keys), so only incurs constant
overhead for each string key access. __proto__ is mapped to a randomized
string. Memory overhead is only incurred per Map, but not per item.

Seems to be the best option for large maps. For small maps linear search is
likely faster.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to