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 - LowPerformance took 43234 ms.
Summary: LowPerformance took 43234 ms.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-06-09 15:33 UTC by Exceptions Reporter
Modified: 2011-06-11 15:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 179267


Attachments
nps snapshot (143.51 KB, application/nps)
2011-06-09 15:33 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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.