Created attachment 128825 [details]
hg bundle with the project
$ hg init
$ hg unbundle "the_attachment"
and then open index.html or bck2brwsr.js and to use the editor. Goto line, find, edit, etc.
I have try it on my computer. The file is rally big, more the 28 000 lines :). The parsing of such file took 918 ms and this is out of my control. I can not do basically nothing with it. The building model for such file takes from 2 200ms to 3 300 ms. So parsing and building model takes at least more than 3 seconds.
If the file has more than 1024 * 1024 bytes then it's not parsed and empty parse result is returned.
Integrated into 'main-golden', will be available in build *201301100107* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Petr Pisl <firstname.lastname@example.org>
Log: #223237 - Editor hiccups on less then 1M js files
In terms of memory fix for issue #224688 may significantly help. It looks like OccurenceImpl instances drop down from 1.5M to 0.5M on your file.
I have also found a possible regression slowing down navigator. But perhaps you haven't seen it yet.
One thing that is really slowing down navigator is ModelUtils.resolveTypes(returnTypes, parserResult); in JsFunctionStructureItem.