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 222573 - org.netbeans.modules.mercurial.util.HgUtils.isIgnored: LowPerformance took 26002 ms.
Summary: org.netbeans.modules.mercurial.util.HgUtils.isIgnored: LowPerformance took 26...
Status: RESOLVED DUPLICATE of bug 223507
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-11-22 05:29 UTC by _ wadechandler
Modified: 2013-01-24 15:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 172254


Attachments
nps snapshot (637.17 KB, application/nps)
2012-11-22 05:29 UTC, _ wadechandler
Details
fix proposal, but is it safe? (4.09 KB, patch)
2012-12-10 15:57 UTC, Ondrej Vrabec
Details | Diff
fix proposal, updated (5.19 KB, patch)
2012-12-10 16:51 UTC, Ondrej Vrabec
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description _ wadechandler 2012-11-22 05:29:14 UTC
Build: NetBeans IDE Dev (Build 201211200002)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b06
OS: Linux

User Comments:
wadechandler: I had opened about 13 Maven NB RCP and Java projects. I expanded the packages in one of them. I selected 9 files. I right clicked on those files. My mouse rolled over the History and Mercurial menu items. One of them stayed highlighted. The IDE had a progress bar stating it was background scanning when I did this. The IDE froze for nearly 30 seconds.



Maximum slowness yet reported was 27908 ms, average is 26955
Comment 1 _ wadechandler 2012-11-22 05:29:24 UTC
Created attachment 128239 [details]
nps snapshot
Comment 2 Ondrej Vrabec 2012-11-22 09:59:08 UTC
Well, it's not blocked by any I/O or a mutex, it's simply matching file paths against hgignore patterns in memory. There are three threads doing the same job and the AWT thread seems to share resources with the other two, but i would guess the AWT should have a higher priority, don't know.
BTW how many records do you have in your .hgignore file?
Comment 3 Ondrej Vrabec 2012-12-10 15:57:53 UTC
Created attachment 129163 [details]
fix proposal, but is it safe?
Comment 4 Ondrej Vrabec 2012-12-10 16:51:59 UTC
Created attachment 129166 [details]
fix proposal, updated
Comment 5 Ondrej Vrabec 2013-01-24 15:48:39 UTC

*** This bug has been marked as a duplicate of bug 223507 ***