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 bug was originally marked as duplicate of bug 182156, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201012150001) VM: Java HotSpot(TM) Client VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04 OS: Windows XP User Comments: esmithbss: Swapping IDE Color/Font Schemes from NetBeans 5.5 to NetBeans Maximum slowness yet reported was 8015 ms, average is 8015
Created attachment 104382 [details] nps snapshot
Jarda, as an idea we can catch exception inside org.openide.filesystems.MIMESupport$CachedFileObject.getInputStream and initialize internal variable fixIt with broken stream marker (which is left null due to thrown exception forever), instead of reread each time by spending time and throwing same exception
*** Bug 192256 has been marked as a duplicate of this bug. ***
Originally named "11 invocations of FileUtil.getMimeType takes 11s", but that happens outside of AWT thread. The AWT thread is blocked in editor org.netbeans.modules.editor.settings.storage.EditorSettingsImpl.notifyTokenFontColorChange(). It fires an event (which could be done outside of AWT, I guess) and in response of that org.netbeans.editor.EditorUI.updateComponentProperties() blocks for a long time. Probably the slow code in org.netbeans.editor.EditorUI.updateComponentProperties() could be done outside of AWT and only alter applied in AWT...
Looking at the very last snapshot it seems that FileUtil.getMimeType invoked just once can be very slow under some circumstances. It doesn't matter whether it is invoked from editor or e.g. nodes as in http://statistics.netbeans.org/exceptions/exception.do?id=441573 Passing back to the core team for evaluation.
In general yes, we need more effective mime recognizers. *** This bug has been marked as a duplicate of bug 191777 ***