debugger icon indicating copy to clipboard operation
debugger copied to clipboard

Optimize initial pause 

Open jasonLaster opened this issue 9 years ago • 5 comments

We're currently optimizing stepping speed in #4284, but the initial pause is a special case that should also be investigated.

My theory is that we will do additional work on the first pause like parsing large scripts.

STR:

  1. go to perf-html locally
  2. add a breakpoint in TabBar.js#34
  3. click "Timeline" or one of the other tabs

Observe that it takes awhile to pause

NOTE: perf-html is a great project that is easy to git clone, npm install, npm start :)

jasonLaster avatar Oct 05 '17 14:10 jasonLaster

/claim

jasonLaster avatar Oct 18 '17 21:10 jasonLaster

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Oct 18 '17 21:10 claim

i'm going to look into this and see if i can simplify

how / when we map scopes and get symbols

jasonLaster avatar Oct 18 '17 21:10 jasonLaster

Reduced test case for parsing https://yurydelendik.github.io/old-man-sandbox/babel-parse/index.html

yurydelendik avatar Oct 25 '17 16:10 yurydelendik

Here's the source: https://github.com/yurydelendik/old-man-sandbox/blob/master/babel-parse/package.json

jasonLaster avatar Oct 25 '17 17:10 jasonLaster