firebug/firebug — pull request #81 by sdavidg (2013-07-07 14:19:36+00:00)
Title: Detection of grouped console messages is slow

I used a portion of https://github.com/bestiejs/lodash to compare the objects equal

Some test:

1) http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/app/feed-viewer/feed-viewer.html

console.time("init");
console.log(Ext.select('viewport'));
console.log(Ext.select('viewport'));
console.log(Ext.select('viewport'));
console.log(Ext.select('viewport'));
console.log(Ext.select('viewport'));
console.timeEnd("init");

actual implementation: browser hangs
new implementation: 28ms

2)
var a = {};
a.o1={};
a.o1.o2={};
a.o1.o2.o3={};
a.o1.o2.o3.o4={};
a.o1.o2.o3.o4.o5={};

var b = {};
b.o1={};
b.o1.o2={};
b.o1.o2.o3={};
b.o1.o2.o3.o4={};
b.o1.o2.o3.o4.o5={1:1};

console.log(a);console.log(b);

actual implementation: group objects, because recursion limit is 3
new implementation: don´t group