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 171046 - 38s in BaseJspEditorSupport.componentActivated
Summary: 38s in BaseJspEditorSupport.componentActivated
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL: http://statistics.netbeans.org/except...
Keywords: PERFORMANCE
: 170878 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-28 05:53 UTC by hof
Modified: 2009-09-18 11:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 157135


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hof 2009-08-28 05:53:13 UTC
Build: NetBeans IDE Dev (Build 200908022240)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP, 5.1, x86
Maximum slowness yet reported was 41156 ms, average is 41156
Comment 1 Jaroslav Tulach 2009-08-28 10:26:12 UTC
You should not call getEditorPanes() in componentActivated. That can take ages. Consider usage of new 
NbDocument.findRecentActivePane(..) or somehow rewrite the code.
Comment 2 Petr Jiricka 2009-09-03 16:07:59 UTC
Could this be a duplicate of issue 169863? Assigning to Marek, who fixed that one just yesterday.
Comment 3 Marek Fukala 2009-09-03 17:25:10 UTC
It's not my code, it is there from November 2003.
Comment 4 Marek Fukala 2009-09-16 13:14:32 UTC
fixed in web-main#ef2e8682300e . I have refactored and cleaned the parsing support in the class completely.
Comment 5 Marek Fukala 2009-09-18 11:12:56 UTC
*** Issue 170878 has been marked as a duplicate of this issue. ***