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 190188 - org.netbeans.modules.editor.url.Parser.recognizeURLs might be slow Was:[69cat] LowPerformance took 82860 ms.
Summary: org.netbeans.modules.editor.url.Parser.recognizeURLs might be slow Was:[69cat...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2010-09-06 16:39 UTC by misterm
Modified: 2010-10-14 08:23 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169400


Attachments
nps snapshot (9.18 KB, application/nps)
2010-09-06 16:40 UTC, misterm
Details
File from ACE+TAO project: ACE_wrappers/build/TAO/tests/IDL_Test/reopened_modulesS.cpp (1.29 MB, text/x-c++src)
2010-10-13 07:46 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2010-09-06 16:39:59 UTC
Build: NetBeans IDE Dev (Build 100906-94c9e1a5e707)
VM: Java HotSpot(TM) Client VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04
OS: Windows 7

User Comments:
GUEST: ext-all-debug.js??????????

jshafe: The IDE has been great all day but all of a sudden started slowing down. Not doing anything in particular.



Maximum slowness yet reported was 83489 ms, average is 43272
Comment 1 misterm 2010-09-06 16:40:23 UTC
Created attachment 101899 [details]
nps snapshot
Comment 2 David Strupl 2010-09-16 10:06:53 UTC
I need a bit more information to fix this problem - the text of the currently edited file and/or the messages.log to see whether there were some exceptions logged.

I am marking this report as incomplete - after someone adds just tiny bit of more info please reopen and we will deal with it.

The suspected problematic method is
org.netbeans.modules.editor.url.Parser.recognizeURLs
-- adding Jan to Cc: ...
Comment 3 Vladimir Voskresensky 2010-10-11 15:46:29 UTC
David, can you evaluate the latest 11 sec delays in trunk builds:
http://statistics.netbeans.org/exceptions/exception.do?id=429159
http://statistics.netbeans.org/exceptions/exception.do?id=429160
Comment 4 David Strupl 2010-10-12 07:34:09 UTC
I am looking at it right now ...
Comment 5 David Strupl 2010-10-12 07:36:45 UTC
Vladimir, can you please send me the file which was visible in the editor when this happened? It would help me a lot to be able to reproduce it ..  Thanks in advance.
Comment 6 David Strupl 2010-10-12 09:43:09 UTC
Jan promised to have a look at his code to check what might be wrong. My last comment with the request that we would like to have the file in question still holds.
Comment 7 Vladimir Voskresensky 2010-10-12 10:31:21 UTC
David I will upload file as soon as would have access to it.
Comment 8 Alexander Simon 2010-10-13 07:46:11 UTC
Created attachment 102381 [details]
File from ACE+TAO project: ACE_wrappers/build/TAO/tests/IDL_Test/reopened_modulesS.cpp
Comment 9 Alexander Simon 2010-10-13 07:58:49 UTC
Unfortunately slowness does not reproduced on standalone file.
You should download ACE+TAO sources, build ACE+TAO, create C/C++ project and open file "reopened_modulesS.cpp" from created project.
Comment 10 Jan Lahoda 2010-10-14 08:23:32 UTC
http://hg.netbeans.org/jet-main/rev/1a00f2c25d65

Please verify, thanks.