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 43838 - [perf] NbJavaFoldMaintainer.ParsingListener called too many times
Summary: [perf] NbJavaFoldMaintainer.ParsingListener called too many times
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords: API, PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-05-25 15:54 UTC by _ rkubacki
Modified: 2007-11-05 13:44 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2004-05-25 15:54:06 UTC
Every opened Java editor attached its own
ParsingListener to a parsing support in Java
module through reflection.

Obvious problems: 
- Bad scaling. The more editors the more listeners
invoked when anything is parsed.
- Behaves poorly when any refactoring feature is
called. Many sources can be parsed and again all
listeners are notified though they may not be
interested.
- Misuse of API (unpublished!). It listens to more
events than neceseary.
Comment 1 _ rkubacki 2004-05-25 15:55:49 UTC
Probably affects long delay between the end of scaning and showing of
results in a tree when find usages is called.
Comment 2 Jan Becicka 2004-06-16 11:09:40 UTC
NbJavaFoldMaintainer is editor stuff.
Comment 3 Miloslav Metelka 2004-06-30 13:49:56 UTC
NbJavaFoldManager is now rewritten to JMIs under issue 42255 and
compares resources which should be reasonably fast.
Comment 4 Miloslav Metelka 2004-06-30 13:56:34 UTC
I've meant it compares org.netbeans.jmi.javamodel.Resource instance
from the event with the one for the fileobject of the edited dataobject.
Comment 5 Roman Strobl 2005-07-14 16:47:17 UTC
Radime, can you please verify this issue? Thanks!