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.
This is one of the suggested improvements by NukemBy. 'createSnapshot()' per each 'intercept()' is most probably not needed - at least this very CPU consuming to be a working implementation
I have tested it and before fix NodeJsRequireFunctionInterceptor.intercept took about 8s on the tested project from issue #268745. After the fix it takes about 30 ms.
Fixed by this change: http://hg.netbeans.org/web-main/rev/ef238f36b2cf
Integrated into 'main-silver', will be available in build *201611160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ef238f36b2cf User: Petr Pisl <ppisl@netbeans.org> Log: #268980 - Improve performance of NodeJsRequireFunctionInterceptor
The fix was transplanted to the releases/release82