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 - org.netbeans.modules.parsing.impl.indexing.Util.resolve too slow in Windows (java.io.File.isDirectory taking too long)
Summary: org.netbeans.modules.parsing.impl.indexing.Util.resolve too slow in Windows (...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: David Strupl
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-07-19 12:55 UTC by blackmen972
Modified: 2012-03-12 15:06 UTC (History)
16 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169488


Attachments
nps snapshot (26.05 KB, application/nps)
2011-07-19 12:55 UTC, blackmen972
Details

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