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 196702

Summary: LowPerformance took 38446 ms.
Product: versioncontrol Reporter: rosswald
Component: GitAssignee: Ondrej Vrabec <ovrabec>
Status: RESOLVED FIXED    
Severity: normal CC: git
Priority: P3 Keywords: PERFORMANCE
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 177564
Attachments: nps snapshot

Description rosswald 2011-03-14 22:48:20 UTC
This bug was originally marked as duplicate of bug 186998, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.0 Beta 2 (Build 201102140001)
VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Windows 7

User Comments:
rosswald: deleted the entire project codebase and checked out manually (ie the files reappeared while NB had still project opened with old file list)



Maximum slowness yet reported was 38446 ms, average is 38446
Comment 1 rosswald 2011-03-14 22:48:36 UTC
Created attachment 106994 [details]
nps snapshot
Comment 2 Ondrej Vrabec 2011-03-15 15:47:29 UTC
Looking at the snapshot, it seems that the git support access IO for a bunch of folders through FileStatusCache.containsFiles()->FileStatusCache.getStatus() - this should be eliminated, the folders are not interesting in the scope of containsFiles and listFiles(), git does not track folders.
So calling getInfo() instead of getStatus() should be sufficient, information about files should be stored in cache anyway, so there's no need to involve isIgnored logic and sharability query.
Comment 3 Ondrej Vrabec 2011-03-15 15:49:57 UTC
fix: http://hg.netbeans.org/core-main/rev/2fbff6e671c4
Comment 4 Quality Engineering 2011-03-16 09:44:10 UTC
Integrated into 'main-golden', will be available in build *201103160400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2fbff6e671c4
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: call fast getInfo instead of slower getStatus
Issue #196702 - LowPerformance took 38446 ms.