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 200233

Summary: org.netbeans.modules.parsing.impl.indexing.Util.resolve too slow in Windows (java.io.File.isDirectory taking too long)
Product: editor Reporter: blackmen972
Component: Parsing & IndexingAssignee: David Strupl <dstrupl>
Status: RESOLVED FIXED    
Severity: normal CC: andyr123, dinamic, hoochieman, KhArtNJava, loic01, mdekrijger, pasha.proton, ProCOmputer, richardmanga, rostik_netbins, St.Ev, stefanv, titiyoyo, troodon, vercinstex, vgrigory
Priority: P2 Keywords: PERFORMANCE
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 169488
Attachments: nps snapshot

Description blackmen972 2011-07-19 12:55:40 UTC
Build: NetBeans IDE Dev (Build 201107100600)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Linux

User Comments:
GUEST: Code complition is very slow. Thanks

GUEST: waiting for autocomplete classname

GUEST: waiting for autocomplete to suggets a class property

GUEST: Generating PHPDoc above a function (/** + Enter key)



Maximum slowness yet reported was 67655 ms, average is 13843
Comment 1 blackmen972 2011-07-19 12:55:45 UTC
Created attachment 109506 [details]
nps snapshot
Comment 2 Tomas Zezula 2011-07-19 13:05:02 UTC
All the time spent in java.io.File.toURI() which calls File.isDirectory()
Comment 3 KhArtNJava 2012-02-27 12:02:46 UTC
The development process greatly slows down due to delays in code completion.
Comment 4 David Strupl 2012-03-09 16:13:59 UTC
Trying to override isDirectory to always return false not to call the expensive native method.
Comment 5 David Strupl 2012-03-12 15:06:35 UTC
http://hg.netbeans.org/jet-main/rev/d60cec7c6450