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.
Method spend about 16% of time at open large c/c++ project on unnecessary logging. See code fragment: ----------------------- public void waitFinished () { boolean isLog = err.isLoggable (err.INFORMATIONAL); for (;;) { err.log ("waitProcessingFinished on container"); // NOI18N waitProcessingFinished (container); Task originalRecognizing = checkRecognizingStarted (); if (isLog) { err.log ("checkRecognizingStarted: " + originalRecognizing); // NOI18N } --------------------- 1. "if" is missed in first log. Consume 11% of time. 2. make isLog flag static. Consume 5% of time.
In 6.0 the code has been changed to use Logger. Its implementation of isLoggable is definitely faster, although I have no measurements at hand.