This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The current implementation of wasProcessed method uses ArrayList for finding an object that was already precessed. It would be better to use a HashSet.
This is one of the suggestions from issue #268745. After fixing this the time spend in the method is decreased from 1 300ms to 30ms on my machine, when less-rhino-4.js is opened. Fixed in web-main http://hg.netbeans.org/web-main/rev/533b8bb064f3
Integrated into 'main-silver', will be available in build *201611170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/533b8bb064f3 User: Petr Pisl <ppisl@netbeans.org> Log: #268981 - Improve performance of ModelUtils.wasProcessed method
The fix was transplanted to the releases/release82