Comment #3 on issue 2904 by [email protected]: Mix of integer and long strings as property names severely degrades object iteration
http://code.google.com/p/v8/issues/detail?id=2904

As an additional test case, attached are two data sets, each containing an object that maps ~550,000 keys to `true`.

The first set uses keys are that entirely numeric (i.e. "123456789"). The second set uses keys that are entirely alphanumeric, constructed by prepending an "a" to each key of the previous set (i.e. "a123456789").

Below is a test case from Node (also reproducible in Chrome, etc.) that illustrates the different performance characteristics:

$ node test.js
numeric (550000): for-var-in user code hit after 87144 ms
alpha   (550000): for-var-in user code hit after 43 ms


Attachments:
        v8-issue-2904.tar.gz  4.6 MB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to