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 206203 - Very long computation in PHPCompletionItem.getRhsHtml
Summary: Very long computation in PHPCompletionItem.getRhsHtml
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords: PERFORMANCE
Depends on: 225068
Blocks:
  Show dependency tree
 
Reported: 2011-12-09 19:34 UTC by gilbertoca
Modified: 2013-01-18 16:28 UTC (History)
16 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 183632


Attachments
nps snapshot (86.50 KB, application/nps)
2011-12-09 19:34 UTC, gilbertoca
Details
nps snapshot (66.59 KB, application/nps)
2012-01-28 08:22 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gilbertoca 2011-12-09 19:34:07 UTC
This bug was originally marked as duplicate of bug 202781, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.1 RC1 (Build 201112012200)
VM: OpenJDK Client VM, 20.0-b11, OpenJDK Runtime Environment, 1.6.0_22-b22
OS: Linux

User Comments:
gilbertoca: using the Search (Ctrl+l) option



Maximum slowness yet reported was 19110 ms, average is 19110
Comment 1 gilbertoca 2011-12-09 19:34:11 UTC
Created attachment 114012 [details]
nps snapshot
Comment 2 Jaroslav Tulach 2011-12-12 07:35:21 UTC
One call to
org.netbeans.modules.java.source.ui.JavaTypeDescription.open()	100.0	18984 ms (100%)	18968 ms	1
generates 
org.netbeans.modules.java.source.indexing.JavaIndex.getIndex()	25.494001	4839 ms (25,5%)	4839 ms	72

All is called from quicksearch: org.netbeans.modules.quicksearch.AbstractQuickSearchComboBar$6.run()	100.0	18984 ms (100%)	18968 ms	1
Comment 3 Exceptions Reporter 2012-01-28 08:22:15 UTC
Created attachment 115337 [details]
nps snapshot
Comment 4 Alexander Simon 2013-01-18 12:15:48 UTC
77 exception reports => P2
Comment 5 Jan Lahoda 2013-01-18 16:23:55 UTC
Appears the exception reporter messed up and duplicated a lot of unrelated reports to this one. I kept the most common (very long computation in PHPCompletionItem.getRhsHtml) under this report (which no longer qualifies as P2, as it only has 19 duplicates), and split out the other problems:
197728, 197729, 197730, 197731, 197732, 197733, 197734, 197735, 197736, 197737,
197738, 197739, 197740, 197741, 197742, 197743, 197744, 197745, 197746, 197747,
197749, 197750, 197751

The problem described in #c2 is under this report:
http://statistics.netbeans.org/exceptions/detail.do?id=197728

I also filled bug #225068 against the exception reporter to properly assign duplicates.
Comment 6 Ondrej Brejla 2013-01-18 16:28:31 UTC
It is fixed in 7.3dev. isPlatform() method is no longer called in getRhsHtml().