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 199315

Summary: LowPerformance took 43234 ms.
Product: java Reporter: Exceptions Reporter <exceptions_reporter>
Component: RefactoringAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal CC: thurka
Priority: P3 Keywords: PERFORMANCE
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 179267
Attachments: nps snapshot

Description Exceptions Reporter 2011-06-09 15:33:13 UTC
This issue was reported manually by thurka.
It already has 1 duplicates 


Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) Client VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07
OS: Windows XP
Maximum slowness yet reported was 43234 ms, average is 43234
Comment 1 Exceptions Reporter 2011-06-09 15:33:23 UTC
Created attachment 108825 [details]
nps snapshot
Comment 2 Tomas Hurka 2011-06-09 15:40:50 UTC
RetoucheUtils.isJavaFile() uses mime-type to find out that the file is java file. This can be slow for some non-java files, since detecting mime-type requires to read bytes from a file. 

It can be fixed using FileUtil.getMimeType(fo, JAVA_MT)
Comment 3 Tomas Zezula 2011-06-10 07:54:21 UTC
Fixed jet-main 4f0d2a9afb04
Comment 4 Quality Engineering 2011-06-11 15:15:14 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/4f0d2a9afb04
User: Tomas Zezula <tzezula@netbeans.org>
Log: #199315:LowPerformance took 43234 ms.