Hirse / brackets-outline-list

Extension for Brackets and Phoenix to display a list of the functions or definitions in the currently opened document.
MIT License
79 stars 30 forks source link

Slowdown the screen display #66

Closed Marco105 closed 7 years ago

Marco105 commented 8 years ago

Hi, I saw a very important slowdown from keyboard to display on screen with this extension active... I use a JS file which have a lot of comment... Is it known issue ?

Hirse commented 8 years ago

The extension is "parsing" the file after each save to update the outline list. Is it a very big file with (very) long lines?

Marco105 commented 8 years ago

Yes this a file with very long comment line, so could you find a way to escape parsing when encounter comment line in your algo (somthing like if line start with // char or /*) ?

Hirse commented 7 years ago

That sounds like a reasonable improvement.

In the meantime, you could check out the master branch in Git where I have experimented with using the Esprima parser.

Marco105 commented 7 years ago

Ok, I will see!

Hirse commented 7 years ago

I have released a new version which uses the Espree parser to extract the outline. I haven't done any performance tests, but please check if it work better for you.

Marco105 commented 7 years ago

Hi, I saw difference with 320 line files and only 45 lines no commented... WORKS VERY FINE NOW ! Thank's so much !

Hirse commented 7 years ago

Great, I'll close this then.