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: NetBeans IDE 7.2 (Build 201207171143) VM: OpenJDK Client VM, 14.0-b16, OpenJDK Runtime Environment, 1.6.0_18-b18 OS: Linux User Comments: leopard2av: formatting a ~2860 lines xml file GUEST: Batch search&replace on 3.3M text file; making snapshot aldobrucale: undi in an xml file (arch.xml) Maximum slowness yet reported was 105891 ms, average is 24220
Created attachment 124919 [details] nps snapshot
Replace all on 2000 matches on big xml file which was still parsing. For evaluate to xml editor.
I can see numerous calls to remove() and insertString() with the associated processing: scheduling reparse, update highlights, ... Lot of time took javax.swing.Timer.restart(), with reported contention on TimerQueue ? The statistics may be damaged, since even RP.Task.notifyRunning() which does nothing except lock & notifyAll takes significant time.
Seems as rather some screwed snapshot. I tried to replace 26k matches in a 53k line document, no suspicious behaviour. Note that most of the time in the replace loop was taken by the document modification operations which have to happen under a write lock: if the replace loop was offloaded from AWT thread elsewhere, the IDE would freeze or we would need to display some 'placeholder' instead of the document, since document contents would not be available during the replace computation for reading (it is write-locked almost all the time)