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 - LowPerformance took 38446 ms.
Summary: LowPerformance took 38446 ms.
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-03-14 22:48 UTC by rosswald
Modified: 2011-03-16 09:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 177564


Attachments
nps snapshot (19.12 KB, application/nps)
2011-03-14 22:48 UTC, rosswald
Details

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