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 116299 - Regression in typing a char (1st) in text editor
Summary: Regression in typing a char (1st) in text editor
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-09-21 12:32 UTC by Oleg Khokhlov
Modified: 2007-10-25 11:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
perf chart (26.90 KB, application/octet-stream)
2007-09-21 12:32 UTC, Oleg Khokhlov
Details
dump (24.01 KB, application/octet-stream)
2007-09-25 14:49 UTC, Oleg Khokhlov
Details
profiler snapshots (819.92 KB, application/octet-stream)
2007-09-25 14:50 UTC, Oleg Khokhlov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Khokhlov 2007-09-21 12:32:09 UTC
Type a character in Txt Editor
   [ ms ] / 100 ms 	
Linux    Solaris   WinXP
1st usage 	336 	821 	305
Subsequent usage 	0 	0 	0
Comment 1 Oleg Khokhlov 2007-09-21 12:32:43 UTC
Created attachment 49227 [details]
perf chart
Comment 2 Vitezslav Stejskal 2007-09-21 14:58:41 UTC
Any chance for threaddumps showing what was going on in the IDE at that time? Thanks
Comment 3 Oleg Khokhlov 2007-09-25 14:49:02 UTC
this action is quite fast, I tried to get dump on Solaris but not sure if I'm successful.
Also I've got 2 profiler snapshots on WinXP: for 1st and second pressing a keybutton.
Hope this will help.
Comment 4 Oleg Khokhlov 2007-09-25 14:49:53 UTC
Created attachment 49465 [details]
dump
Comment 5 Oleg Khokhlov 2007-09-25 14:50:39 UTC
Created attachment 49466 [details]
profiler snapshots
Comment 6 Vitezslav Stejskal 2007-09-26 10:39:57 UTC
Thanks for the threaddumps! The stacktrace in AWT-EventQueue-1 thread shows that cnd module is doing something when a
file is marked as modified. Ovk, could you please try to measure this without C++ modules, if it makes any difference?
I'm not sure if this deserves P2, but obviously it's a regression. Anyway, reassigning to cnd guys for further evaluation.
Comment 7 Vladimir Kvashin 2007-09-26 17:21:23 UTC
At this moment CND searches an interface in lookup; this interface resides in cnd core (org.netbeans.modules.cnd)
module, which is pretty large (it consists of ~450 classes). Interfaces used (NativeFileItem, NativeFileItemSet, etc)
are an API that worth separating into a different module. (We were going to do this, but weren't in time). I believe
this will solve the issue.
Comment 8 Vladimir Voskresensky 2007-10-02 12:00:23 UTC
separation was done. Seems problem was solved.
I'm on Solaris and the first char typing is rather fast (as I see from profiler results the most time spent in cnd is
78ms on this phase).
consider it as fixed.
Comment 9 Oleg Khokhlov 2007-10-25 11:09:52 UTC
within boundaries now.