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 244022

Summary: 125s in de.foopara.phpcsmd.generics.GenericAnnotationBuilder.annotateLine
Product: third-party Reporter: Exceptions Reporter <exceptions_reporter>
Component: -- Other --Assignee: vralfy
Status: NEW ---    
Severity: normal CC: haroun.almasalmeh, jglick, jkovalsky, Vitex
Priority: P3 Keywords: PERFORMANCE
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 209243
Attachments: nps snapshot

Description Exceptions Reporter 2014-04-23 10:24:01 UTC
This bug was originally marked as duplicate of bug 177420, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 8

User Comments:
GUEST: I was checking for code violations with the phpcs plugin when netbeans stoped responding.



Maximum slowness yet reported was 195923 ms, average is 195923
Comment 1 Exceptions Reporter 2014-04-23 10:24:11 UTC
Created attachment 146909 [details]
nps snapshot
Comment 2 Jaroslav Tulach 2014-04-25 09:56:22 UTC
The snapshot
http://statistics.netbeans.org/exceptions/exception.do?id=721994
shows that one call to 

de.foopara.phpcsmd.generics.GenericAnnotationBuilder.annotateLine()	72.130714	134 651 ms (72,1%)	125 415 ms	4

yields 1000 calls to:

org.openide.text.Annotation.attach()	54.00939	100 823 ms (54%)	100 819 ms	1087

that can hardly be fast. Anyway you need to talk to the author of de.foopara.phpcsmd module.
Comment 3 Jiri Kovalsky 2014-04-25 12:21:33 UTC
Norman, can you please take a look at this bug and fix your PHPCSMD plugin [1]? Thanks a lot!

[1] http://plugins.netbeans.org/plugin/42434