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 213965 - CodeCompletion took 5334 ms.
Summary: CodeCompletion took 5334 ms.
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: All All
: P4 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-06-11 11:58 UTC by dinamic
Modified: 2016-06-29 04:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 189327


Attachments
nps snapshot (61.75 KB, application/nps)
2012-06-11 11:58 UTC, dinamic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dinamic 2012-06-11 11:58:04 UTC
This bug was originally marked as duplicate of bug 197270, 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.2 Beta (Build 201205031832)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7
Maximum slowness yet reported was 5334 ms, average is 5334
Comment 1 dinamic 2012-06-11 11:58:11 UTC
Created attachment 120660 [details]
nps snapshot
Comment 2 Ondrej Brejla 2012-06-11 14:01:30 UTC
Sorry but I can't do anything with that right now. It's slow, because of duplicity checking (duplicity of elements). Every element has it's own normalizedName which is used for duplicity checking and counting of this normalizedName takes a lot of time.

But this "duplicity solving policy" in ScopeImpl.filter() is used a lot in a whole module. Every client of this method rely on a result with no duplicates, even though the return type is just Collection, which doesn't says that there are no duplicates.

Clients of filter method have to be rewritten, and filter should use Collection<T> retval = new LinkedList<T>(); instead of Set<T> retval = new HashSet<T>();

P4 reminder for some of next releases...since it's in PHP modules from the beginning.
Comment 3 Tomas Mysik 2016-06-29 04:53:46 UTC
Report from NB 7.2 Beta, no duplicates. Let's close this issue and wait for new reports.

Thanks.