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 116278 - low performance of code model events
Summary: low performance of code model events
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sergey Grinev
URL:
Keywords:
Depends on:
Blocks: 108501
  Show dependency tree
 
Reported: 2007-09-21 10:00 UTC by Alexander Simon
Modified: 2008-01-24 00:23 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
stack trace (5.02 KB, text/plain)
2007-09-21 10:06 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2007-09-21 10:00:03 UTC
low performance of code model events
Code model events do not fit for model clients.
Clients based on document/file are forced to listening of all events to filter events concerned document/file.
It is a bad but not catastrophic.
Worse situation on start up project/client.
Clients are forced to detect initial state of document/file. It results in instantiate of all model files.
See attached stack.

Existing code model system fits only class view needs.
Provide simple access to listening data/file object changes.

P2 because issue blocks support of huge project like Open Solaris.
Comment 1 Alexander Simon 2007-09-21 10:06:26 UTC
Created attachment 49213 [details]
stack trace
Comment 2 Vladimir Kvashin 2007-10-09 03:50:53 UTC
The idea sounds quite reasonable. But this concerns mainly client inconvenience (I mean the inconvenience of writing
client code) and probably small to moderate negative performance impact. I strongly believe it's rather an enhancement
than a defect.

(But I'm sure we should make this improvement in 6.x framework)
Comment 3 Alexander Simon 2008-01-23 20:00:05 UTC
I think that issue was fixed?
Comment 4 Sergey Grinev 2008-01-24 00:23:16 UTC
fixed by introducing CsmTaskFactory engine which is responsible for listening of document events and converting all
model clients to use it.