This repository was archived by the owner on May 6, 2020. It is now read-only.
This repository was archived by the owner on May 6, 2020. It is now read-only.
Debugging when working with large objects can increase execution time 100 fold #87
Open
Description
Chromium JavaScript Remote Debugger Version: 0.3.8.201210040400
Eclipse version: 3.8.0
Google Chrome/V8 Embedder + version:
[For WebKit (WIP) protocol] Backend version:
OS + version: Ubuntu 12.10
I am hoping that someone recognizes this and might point me to a duplicate
issue, because try and try but I cannot recreate this problem in a testcase.
I have a large script that combines different (private) sources into a
multidimensional array with objects as values. This array is flattened, but has
a lot of references. All references are cloned, so they are no longer
references, resulting in a very big object.
This all executes in under one second. But add a breakpoint anywhere, and
execution time (before the code actually arrives on the breakpoint) suddenly
rises to 60 seconds.
I tried to recreate this in different ways using random object generators, but
I cannot seem to recreate this problem. Breakpoint or not, execution time is
identical.
What is the expected result?
Code pauses on first breakpoint without a massive delay.
What happens instead?
Massive delay of 60+ seconds.
It looks like setting a breakpoint causes the V8 debugger to recreate the
object on a Z80 emulator.
Original issue reported on code.google.com by redsandro
on 23 May 2013 at 12:52