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 184422 - 5s - FontAndColorsPanel.update() is slow
Summary: 5s - FontAndColorsPanel.update() is slow
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2010-04-19 08:55 UTC by jmichelberger
Modified: 2013-04-28 02:16 UTC (History)
27 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 158411

nps snapshot (20.72 KB, application/nps)
2010-04-19 08:55 UTC, jmichelberger

Note You need to log in before you can comment on or make changes to this bug.
Description jmichelberger 2010-04-19 08:55:04 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-5071-on-100412)
VM: Java HotSpot(TM) Server VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04
OS: Windows XP
Maximum slowness yet reported was 6891 ms, average is 4683
Comment 1 jmichelberger 2010-04-19 08:55:11 UTC
Created attachment 97597 [details]
nps snapshot
Comment 2 Stanislav Aubrecht 2010-10-08 10:35:09 UTC
there's a mix of possible problems indicated in attached snapshots:
- editor indentation engine
- php file owner query
- slow native reading from a zip file

editor team, pls evaluate and/or reassign, thanks
Comment 3 Dusan Balek 2011-11-08 10:30:02 UTC
Problems with editor indentation are tracked by issue #183962. Reassigning back to platform.
Comment 4 Jaroslav Tulach 2011-11-14 07:54:14 UTC
The latest report from 7.1beta is
and it shows that one call to

org.netbeans.modules.options.colors.FontAndColorsPanelController.update()	5488 ms (95,3%)	4579 ms	

results in many calls into$DefaultLocator.addFiles2571 ms (44,7%)	1672 ms	12


org.openide.filesystems.FileUtil.getMIMEType()	2571 ms (44,7%)	1672 ms	12

Nobody knows how to speed up getMIMEType, so the only option seems to be to make FontAndColorsPanelController.update asynchronous.
Comment 5 Milutin Kristofic 2013-04-23 17:35:06 UTC
Comment 6 Quality Engineering 2013-04-28 02:16:09 UTC
Integrated into 'main-golden', will be available in build *201304272301* on (upload may still be in progress)
User: Milutin Kristofic <>
Log: #184422 - 5s - FontAndColorsPanel.update() is slow