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 221187 - Slowness in VCS menu creation
Summary: Slowness in VCS menu creation
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: All All
: P4 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords: PERFORMANCE
: 218908 221190 221202 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-31 14:50 UTC by Alexander Simon
Modified: 2014-06-05 12:20 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 189218


Attachments
nps snapshot (23.71 KB, application/nps)
2012-10-31 14:50 UTC, Alexander Simon
Details
EDT stacktrace (3.91 KB, text/plain)
2013-01-28 15:35 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2012-10-31 14:50:44 UTC
This issue was reported manually by alexvsimon.
It already has 3 duplicates 


Build: NetBeans IDE Dev (Build 20121030-622e5e0a98e9)
VM: Java HotSpot(TM) Client VM, 20.8-b03, Java(TM) SE Runtime Environment, 1.6.0_33-b03
OS: SunOS

User Comments:
soldatov: call context menu



Maximum slowness yet reported was 9547 ms, average is 6141
Comment 1 Alexander Simon 2012-10-31 14:50:46 UTC
Created attachment 126868 [details]
nps snapshot
Comment 2 Ondrej Vrabec 2012-10-31 19:06:20 UTC
*** Bug 218908 has been marked as a duplicate of this bug. ***
Comment 3 Tomas Stupka 2012-11-15 14:21:19 UTC
*** Bug 221202 has been marked as a duplicate of this bug. ***
Comment 4 Tomas Stupka 2012-11-15 14:34:48 UTC
git.getActions() seem to be at the root of the problem. please evaluate.
Comment 5 Ondrej Vrabec 2012-11-15 14:48:25 UTC
fix: http://hg.netbeans.org/core-main/rev/09dff0068f86
Comment 6 Ondrej Vrabec 2012-11-15 14:50:00 UTC
fixed slow menu reported in bug #221202, others are mainly caused by one single call to File.isFile() throughout all the versioning systems
Comment 7 Tomas Stupka 2012-11-15 16:22:03 UTC
all the remaining reports come from file.isFile()

while it is unfortunate that the menu freezes and we could try to do the .isFile() evaluation outside of awt (to avoid the freeze) and until then manipulate the menu accordingly, the result would still be questionable - the user just can't use the menu action. We would just fix the freeze, not the availability of the needed functionality which _has_ to be backed by the info returned by .isFile(). 

so for now will consider this as a low priority until there is no valid reasoning that we aren't going to invest a lot of effort to handle something that is just one of the following:
- a seldom glitch
- a initial warmup case (and seldom)
- a generally unusable setup - e.g. a slow nfs mount bringing the whole IDE on its knees. How is it even possible to work on a filesystem where already a file.isFile() call typically takes a couple of seconds?  
- either a hypothetical or artificially induced scenario
Comment 8 Quality Engineering 2012-11-17 02:43:06 UTC
Integrated into 'main-golden', will be available in build *201211170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/09dff0068f86
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #221187 - Slowness in VCS menu creation
fixing slow menu reported in bug #221202
Comment 9 Ondrej Vrabec 2012-12-07 12:59:37 UTC
*** Bug 221190 has been marked as a duplicate of this bug. ***
Comment 10 Vladimir Voskresensky 2013-01-24 10:43:04 UTC
up to 12 sec UI freeze. P4->P3
Comment 11 Ondrej Vrabec 2013-01-24 10:49:06 UTC
again, one call to java.io.File.exists(): 12579ms ??? See comment #7. Downgrading again.
Comment 12 Vladimir Voskresensky 2013-01-24 12:03:01 UTC
(In reply to comment #11)
> again, one call to java.io.File.exists(): 12579ms ??? See comment #7.
> Downgrading again.
Ondra, but it's reality :-)
Shouldn't IDE be ready for that as well?
Next week I'll be in Prague. Let's discuss this
Comment 13 Egor Ushakov 2013-01-28 15:35:55 UTC
Created attachment 130728 [details]
EDT stacktrace

No vcs functionality requested, just a context menu on a project.