Status: New
Owner: ----
New issue 2006 by [email protected]: Some JSON debugger lookup requests
are taking a very long time
http://code.google.com/p/v8/issues/detail?id=2006
Most lookups take 41 +/- 2 msec using the JSON interface.
I installed nide (https://github.com/coreh/nide) which defines
a module in server/project.
Given this code:
#!/usr/bin/env node
var server = require('./server/server');
var project = require('./server/project');
var props = [];
for (var p in project) {
props.push(p);
}
console.log("props(project) : " + props.join(" "))
//// END
Breakpoints at 'var project = ...' and 'var props = ...'.
At the line where project is set, my debugger can generate info[*]
on all variables in 0.255 +/- 0.005 seconds.
I then continue to the line after project is set. My debugger
now needs about 30.1 seconds to generate the info on all variables.
29.880 seconds of that time is spent waiting for the lookup request
on the project variable.
I've also seen similar behavior with the global 'this' variable
Why does a lookup request on this one variable take 750 times longer
than for most other variables?
[*]"info" means providing the following info for each variable
in the current frame and scope:
names,
types,
values for scalars,
container-ness
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev