Comment #3 on issue 4299 by rain1...@gmail.com: extremely poor performance
when deal with many object with different keys
https://code.google.com/p/v8/issues/detail?id=4299
using 'new Map' is not work.
use 'obj={k:1}; delete obj.k' can do the trick,
however, if we want to parse data from json string, it has no chance to do
this trick.
var jsons = [];
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;
jsons.push(JSON.stringify(obj));
}
jsons.forEach(function(json){
var obj=JSON.parse(json); // Still too slow...
});
--
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
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.