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.

Bug 185777

Summary: Bad HTMLTextArea performance
Product: profiler Reporter: Jiri Sedlacek <jis>
Component: BaseAssignee: Jiri Sedlacek <jis>
Status: RESOLVED FIXED    
Severity: normal Keywords: VISUALVM
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jiri Sedlacek 2010-05-08 15:45:01 UTC
The org.netbeans.lib.profiler.ui.components.HTMLTextArea invokes a lot of code and creates a lot of objects whenever setting its text. It would be nice to optimize it to only update its text when really needed.
Comment 1 Jiri Sedlacek 2010-05-08 15:49:01 UTC
The component now only updates the internal document if showing and the new text differs from the current one. Also optimized setForeground() which uses setText().

Fixed in profiler-main:

http://hg.netbeans.org/profiler-main/rev/810dc1ef968b
Comment 2 Quality Engineering 2010-05-10 09:17:16 UTC
Integrated into 'main-golden', will be available in build *201005100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: