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 213942 - CodeCompletion took 2053 ms.
Summary: CodeCompletion took 2053 ms.
Status: RESOLVED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-06-11 08:25 UTC by luki100011
Modified: 2012-06-11 09:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 186094


Attachments
nps snapshot (40.32 KB, application/nps)
2012-06-11 08:25 UTC, luki100011
Details

Note You need to log in before you can comment on or make changes to this bug.
Description luki100011 2012-06-11 08:25:06 UTC
Build: NetBeans IDE 7.2 Beta (Build 201205031832)
VM: Java HotSpot(TM) Client VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows 7

User Comments:
GUEST: writing code with doctrine2 orm

szmitek: Writting ShowDayCells() in PHP script when this function is declared in this way:

function ShowDayCells($Day, $Start, $WithColspan)
{
    global $Cells;
    global $Level;
    $Column = 0;
}

GUEST: setB >>>tab>>> [oolean]

GUEST: typing a line of code into a class method, referencing a member variable. I think a 'SNAPSHOT' was being created at the same time, which slowed down the autocomplete.  Not even sure what a snapshop is, but I saw that in the status bar....

GUEST: symofny2 + propel findOneOrCreate completition



Maximum slowness yet reported was 4412 ms, average is 2998
Comment 1 luki100011 2012-06-11 08:25:13 UTC
Created attachment 120642 [details]
nps snapshot
Comment 2 Tomas Zezula 2012-06-11 09:10:50 UTC
May be caused by some inefficient query done by PHP.
Or it may be initialization of an index (wontfix).
Reassigning to PHP to decide.
Comment 3 Ondrej Brejla 2012-06-11 09:36:09 UTC
It seems to me that there's nothing strange. We try to resolve all inherited elements for CC window. If there is some deep inheritance (as it looks like), it may take a long time...I think that we can't do anything with that.

If you have some project, where the problem can be reproduced, don't hesitate to attach it here...so we can evaluate it more precisely. Then just reopen this issue. Thanks a lot.