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 202781 - 4s - BreakpointGroup.createGroups() does extensive calls to Java in EDT
Summary: 4s - BreakpointGroup.createGroups() does extensive calls to Java in EDT
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-09-28 15:11 UTC by Egor Ushakov
Modified: 2011-10-18 01:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181461


Attachments
nps snapshot (74.21 KB, application/nps)
2011-09-28 15:11 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2011-09-28 15:11:42 UTC
This bug was originally marked as duplicate of bug 197270, 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.1 (Build 201107282000)
VM: Java HotSpot(TM) Client VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: SunOS

User Comments:
gorrus: opened breakpoints view during debug session



Maximum slowness yet reported was 3427 ms, average is 3427
Comment 1 Egor Ushakov 2011-09-28 15:11:49 UTC
Created attachment 111284 [details]
nps snapshot
Comment 2 Egor Ushakov 2011-09-29 13:22:00 UTC
It is very annoying! Occurs every time when you open breakpoints view and has several Methods breakpoins (i had ~7 breakpoints for "all methods in class"). Every open of breakpoints view freeze IDE for a couple (or more if you're unlucky) seconds.
Comment 3 Jaroslav Tulach 2011-10-12 09:38:39 UTC
org.netbeans.modules.debugger.ui.models.BreakpointGroup.createGroups() seems to call org.netbeans.api.java.source.ClasspathInfo.getClassIndex() many times. Avoid that.
Comment 4 Martin Entlicher 2011-10-17 08:46:29 UTC
Fixed by changeset:   204589:8a37298b0dae
http://hg.netbeans.org/main/rev/8a37298b0dae
Comment 5 Quality Engineering 2011-10-18 01:33:44 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/8a37298b0dae
User: mentlicher@netbeans.org
Log: #202781 Searching for a file based on resource path is much faster than searching for a class name.