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 198101 - 27s in getWebRootDirectory
Summary: 27s in getWebRootDirectory
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-04-26 19:20 UTC by herlandercs
Modified: 2011-09-08 14:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 174603


Attachments
nps snapshot (18.32 KB, application/nps)
2011-04-26 19:20 UTC, herlandercs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description herlandercs 2011-04-26 19:20:17 UTC
Build: NetBeans IDE 6.9 (Build 201011082200)
VM: Java HotSpot(TM) Client VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07
OS: Windows 7
Maximum slowness yet reported was 27718 ms, average is 24850
Comment 1 herlandercs 2011-04-26 19:20:23 UTC
Created attachment 107954 [details]
nps snapshot
Comment 2 Petr Pisl 2011-06-08 11:47:41 UTC
The slownest is comming from takslist, where the bulk of time is spend in fs.children.childrenSupport.rescanChildren().
Comment 3 Jaroslav Tulach 2011-06-08 13:39:16 UTC
27s in

org.netbeans.modules.php.project.ui.logicalview.SrcNode$PackageNode.getIcon()
org.netbeans.modules.php.project.ProjectPropertiesSupport.getWebRootDirectory()

then the system starts to touch files on disk. Just do it on a background and not in AWT.
Comment 4 Tomas Mysik 2011-07-01 04:27:33 UTC
Will be fixed by caching webroot directory.
Comment 5 Tomas Mysik 2011-09-07 14:23:45 UTC
Should be fixed by caching of web root directory.

http://hg.netbeans.org/web-main/rev/5eb63093728a
Comment 6 Quality Engineering 2011-09-08 14:32:41 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/5eb63093728a
User: Tomas Mysik <tmysik@netbeans.org>
Log: #198101 - 27s in getWebRootDirectory

Caching web root directory; can be improved but perhaps not necessary.