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 211158 - CodeCompletion took 2093 ms. via ClassPath.getClassPath() -> RepositoryMavenCPPProvider -> EmbedderFactory.createProjectLikeMavenEmbedder
Summary: CodeCompletion took 2093 ms. via ClassPath.getClassPath() -> RepositoryMavenC...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-04-13 12:32 UTC by jaygridley
Modified: 2012-04-19 10:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 175961


Attachments
nps snapshot (68.81 KB, application/nps)
2012-04-13 12:33 UTC, jaygridley
Details
profiler screenshot (149.45 KB, image/png)
2012-04-16 03:56 UTC, Milos Kleint
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jaygridley 2012-04-13 12:32:58 UTC
Build: NetBeans IDE Dev (Build 201204100400)
VM: Java HotSpot(TM) Client VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05
OS: Windows 7

User Comments:
GUEST: Going thru the options tab ... no heavy processing going on on laptop.

jaygridley: Just writting some code using Twitter library (Twitter4J) and using code hinting.

jglick: CC on a ResourceFetcher (from Apache Wagon, in maven.indexer sources).

GUEST: open python file

dropped onto ide

GUEST: Drag and drop file from windows explorer to netbeasn to open&edit it.



Maximum slowness yet reported was 17796 ms, average is 7631
Comment 1 jaygridley 2012-04-13 12:33:04 UTC
Created attachment 118238 [details]
nps snapshot
Comment 2 Milos Kleint 2012-04-16 03:54:22 UTC
most time is spent in initializing the plexus/guice container
Comment 3 Milos Kleint 2012-04-16 03:56:30 UTC
Created attachment 118298 [details]
profiler screenshot
Comment 4 Milos Kleint 2012-04-16 12:54:14 UTC
(In reply to comment #0)
> 
> User Comments:
> GUEST: Going thru the options tab ... no heavy processing going on on laptop.
> 

http://hg.netbeans.org/core-main/rev/c614947d4d5a and
http://hg.netbeans.org/core-main/rev/ab73393b70cc

should cover that case
Comment 5 Quality Engineering 2012-04-17 10:04:11 UTC
Integrated into 'main-golden', will be available in build *201204170400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c614947d4d5a
User: Milos Kleint <mkleint@netbeans.org>
Log: #211158 after resetting the embedders, run an off-AWT, off-CodeComplete warmup task creating new instance of project embedder.
Comment 6 Milos Kleint 2012-04-18 07:44:47 UTC
http://hg.netbeans.org/core-main/rev/f1e8dbaf6ba9
http://hg.netbeans.org/core-main/rev/7de590d78a23

attempt to reduce the likelyhood of plexus container initialization happening to cases where applicable
Comment 7 Quality Engineering 2012-04-19 10:02:07 UTC
Integrated into 'main-golden', will be available in build *201204190400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f1e8dbaf6ba9
User: Milos Kleint <mkleint@netbeans.org>
Log: #211158 in global CPP Provider we need to be careful when running EmbedderFactory calls, attempt to exclude all non-maven related usage, but it's hard.. adding one more check based on file location patterns in the local repository