Status: Untriaged
Owner: ----
New issue 4299 by [email protected]: extremely poor performance when deal
with many object with different keys
https://code.google.com/p/v8/issues/detail?id=4299
tested in nodejs v0.12
for(var i=0; i<100000; i++){
var obj = {};
obj[Math.random()] = true;
}
//too slow 35.8s!
for(var i=0; i<100000; i++){
var obj = {k : 1};
delete obj.k; // trick v8 not to use hidden class
obj[Math.random()] = true;
}
// 0.19s!
This is caused by creating too many hidden class.
My project have to deal with many small objects with different keys, this
is very frustrating, is there a better way to solve this issue?
--
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/d/optout.