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 52006 - Every code completion requests causes many calls to JMIUtils.getJavaPackageExtent
Summary: Every code completion requests causes many calls to JMIUtils.getJavaPackageEx...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 4.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Martin Roskanin
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 51714
  Show dependency tree
 
Reported: 2004-12-02 11:42 UTC by _ rkubacki
Modified: 2007-11-05 13:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2004-12-02 11:42:06 UTC
Every call takes at least 1ms on my notebook until
it gets compiled.It gets all extents (in a
transaction) and iterates through them (using
tranactions again) to find if it is a
JavaModelPackage. We call this 2-15 times to show
code completion and its javadoc. We are loosing
time here also because it can wait for transaction.

Perhaps we can cache this or maybe there can be
appropriate method in API to get the expected result.
Comment 1 Dusan Balek 2005-01-12 09:24:39 UTC
Fixed in [maintrunk]. Caching JavaModelPackage.

Checking in JMIUtils.java;
/cvs/java/editor/src/org/netbeans/modules/editor/java/JMIUtils.java,v
 <--  JMIUtils.java
new revision: 1.4; previous revision: 1.3
done