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.
[ BUILD # : 201305262300 ] [ JDK VERSION : 1.7.0_21 ] * Enable all the options for the new multirow tabs - see screenshot * Hold the shortkey for "Insertion Point to Next Word"/"Insertion Point to Previous Word" in a java file. ACTUAL: the navigation is unexpectedly slow (the tab title will flicker; the tab title seems to get updated by this navigation action - see screenshot of sampling tree) EXPECTED: ??? the tab title won't flicker (there is no need for updating the tab title IMHO)
Created attachment 135028 [details] Sampling tree with annotation
Created attachment 135029 [details] Sampling snapshot
Created attachment 135030 [details] Used window/tab options
The problem is that after calling atomiclock, Netbeans sets file as modified, and this triggers title change, which should be a fast operation, but on your computer isn't. Maybe it isn't because your computer is busy and you use many multirow and this takes 2x (during locking and unlocking) half a second: org.netbeans.core.multitabs.impl.TabLayoutManager$RowPerProjectTabLayoutManager.doLayout() 3.8485105 481 ms (3.8%) 481 ms I think the problem should be fix in atomic lock and Mila said he is working on some changes, but it can take a long time. CamelCase doesn't need atomic lock and I can change it, but that is not big help, since every insert, delete is under atomicLock. Therefore I am sending this to Standa, he can look at how fast is layout and fix more problems by making it faster or smarter.
Fixed CamelCase action. http://hg.netbeans.org/jet-main/rev/b95f733d68fe
And I've improved the multi-tabs performance a bit in core-main 244969f57305
Thanks. I will give it a try in the next days.
Integrated into 'main-golden', will be available in build *201305302301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b95f733d68fe User: Milutin Kristofic <mkristofic@netbeans.org> Log: #230410 - CamelCaseJump-Action is very slow - it always updates the tabtitle? - fix camelcase action
I still experience CamelCaseAction slowness in: Product Version: NetBeans IDE Dev (Build 201307072319) Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: SunOS version 5.11 running on x86; UTF-8; en_US (nb) It really look like a call to doc.runAtomicAsUser triggers CloneableEditorSupport.updateTitles which updates names of all editors... See attached snapshot
Created attachment 136875 [details] snapshot
is doc.runAtomicAsUser really required for read-only actions?
Fix of #228991 removes extra CloneableEditorSupport.notifyModify()/notifyUnmodify() call pairs so notifyModify() is only done upon real document modification which should eliminate this problem. *** This bug has been marked as a duplicate of bug 228991 ***