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 227293

Summary: 10s - versioning.core.ProjectMenuItem.getLocalHistory() seeks disk when creating its menu item
Product: versioncontrol Reporter: lempax
Component: CodeAssignee: Ondrej Vrabec <ovrabec>
Status: RESOLVED FIXED    
Severity: normal CC: laymain
Priority: P3 Keywords: PERFORMANCE
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 199332
Attachments: nps snapshot

Description lempax 2013-03-11 14:00:53 UTC
Build: NetBeans IDE 7.3 (Build 201302132200)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_15-b03
OS: Windows 7
Maximum slowness yet reported was 21038 ms, average is 20966
Comment 1 lempax 2013-03-11 14:00:55 UTC
Created attachment 132464 [details]
nps snapshot
Comment 2 Jaroslav Tulach 2013-04-18 08:13:17 UTC
Disk I/O can be slow. Maybe there is a way to avoid the query and show (possibly incorrectly) enabled menu item instead...
Comment 3 Ondrej Vrabec 2013-04-18 08:42:47 UTC
not sure this can be avoided, but now it's called twice in a row, maybe it can be called only once
Comment 4 Ondrej Vrabec 2013-04-18 08:46:42 UTC
fixed: core-main #971fa8b08536
Comment 5 Quality Engineering 2013-04-19 03:22:50 UTC
Integrated into 'main-golden', will be available in build *201304182301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/971fa8b08536
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #227293 - 10s - versioning.core.ProjectMenuItem.getLocalHistory() seeks disk when creating its menu item
getting root files just once and share the result when building vcs and local history menu