Bug 200233 - org.netbeans.modules.parsing.impl.indexing.Util.resolve too slow in Windows (java.io.File.isDirectory taking too long)
org.netbeans.modules.parsing.impl.indexing.Util.resolve too slow in Windows (...
Status: RESOLVED FIXED
Product: editor
Classification: Unclassified
Component: Parsing & Indexing
7.0
All All
: P2 (vote)
: 7.2
Assigned To: David Strupl
issues@editor
EXCEPTIONS_REPORT perf-profileme
: PERFORMANCE
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo