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.
|Product:||editor||Reporter:||Sonali Kochar <sonali>|
|Component:||Painting & Printing||Assignee:||Miloslav Metelka <mmetelka>|
|Issue Type:||DEFECT||Exception Reporter:|
|Bug Depends on:||121357, 150204|
Description Sonali Kochar 2008-10-30 22:35:27 UTC
Comment 1 Jan Becicka 2008-11-03 08:39:13 UTC
Milo, please evaluate. Thanks
Comment 2 Miloslav Metelka 2008-11-03 14:25:04 UTC
Comment 3 Miloslav Metelka 2008-11-07 10:10:16 UTC
I have made some additional profiling. There are 1) 103389 chars in the js-script-min.js document. 2) 7 BaseDocument.insertString() invocations (there is a buffer with 16384 chars for insertions). These could be collapsed into a single insert by reallocating the buffer before the actual insert but I consider that non-systematic. 3) 38804 tokens in the document. I see two problems: a) Since almost all the chars are on a single line each repetitive insertion in 2) causes re-measurement of the particular line in the view hierarchy (DrawEngineLineView.getPreferredSpan() gets called leading to DrawEngine.draw() called for measurements). - A new view hierarchy (issue 121357) should improve the situation considerably since the views will maintain their span internally so there will be no additional re-measurements done. b) Token hierarchy is updated after each sub-insert in 2) leading to repetitive updates of syntax highlighting layer. - This should be improved by switching the TH off before document loading and on after the loading - issue 150204 (planned for 7.0). I have added some logging of syntax highlighting and token hierarchy events and views rebuilding: http://hg.netbeans.org/main/rev/d29e247a6daa
Comment 4 Quality Engineering 2008-11-07 16:20:20 UTC
Comment 5 David Strupl 2012-10-25 13:39:16 UTC
Bug prior to 7.0, not touched for the last 2 years --> P4.
Comment 6 David Strupl 2012-10-26 13:35:55 UTC
I think this was fixed long ago by Mila.