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.
IDE creates a lot of unneeded arrays in disabled loggers. Typical developer mistake is: LOG.log(Level.FINE, "some {0} {1}", new Object[] {o1, o2}); This code creates unneeded array. Right pattern is: if (LOG.isLoggable(Level.FINE)) { LOG.log(Level.FINE, "some {0} {1}", new Object[] {o1, o2}); } It has influence on performance especially if code is called thousand times in second.
fixed the most critical classes in change set: http://hg.netbeans.org/cnd-main/rev/cffe46c08475
Integrated into 'main-silver', will be available in build *201409030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/cffe46c08475 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #246829 Do not create unneeded object in disabled loggers - fixed most critical classes.
Has this been reviewed by owners of the respective modules? Definitely not a candidate for a patch. Adding 18 additional modules to the set of updates just for this change is not in the scope of the patch. Removing "801patch-candidate" from the whiteboard.
Integrated into 'releases/release801', will be available in build *201409171118* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/f6722e7a085e User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #246829 Do not create unneeded object in disabled loggers - fixed most critical classes. (transplanted from cffe46c08475d7436c3ee0cd5c43f53222b27670)