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 252068 - Optimize 'Open Projects' phase of the 'Open Project Group' action
Summary: Optimize 'Open Projects' phase of the 'Open Project Group' action
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-24 10:17 UTC by NukemBy
Modified: 2015-04-27 18:35 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
OpenProjects+BgScan.npss (1.98 MB, application/octet-stream)
2015-04-24 10:17 UTC, NukemBy
Details
open-ClassPath-tostring-2600ms.png (53.27 KB, image/png)
2015-04-24 10:17 UTC, NukemBy
Details
open-CopyResourcesOnSave-1700ms.png (51.45 KB, image/png)
2015-04-24 10:17 UTC, NukemBy
Details
open-DefaultArtifactDescriptorReader-readArtifactDescriptor-18500ms.png (63.01 KB, image/png)
2015-04-24 10:18 UTC, NukemBy
Details
open-NbMavenProject-getPackagingType-23000ms.png (78.65 KB, image/png)
2015-04-24 10:18 UTC, NukemBy
Details
open-NbModelBuiler-build-17100ms.png (60.50 KB, image/png)
2015-04-24 10:18 UTC, NukemBy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NukemBy 2015-04-24 10:17:10 UTC
Created attachment 153350 [details]
OpenProjects+BgScan.npss

This is fork from that issues:
https://netbeans.org/bugzilla/show_bug.cgi?id=250833

Use-case is:

  - Start empty NetBeans and switch to a Project Group ...
  - ... it contains large multi-module MAVEN project (300 modules, 7000 source files).
  - It takes 1.5 minute to open and I feel there is some space to improve performance.

During  'Open Project Group' action there are two phases:
  1. Open Projects   - takes 45 seconds
  2. Background Scan - takes 40 seconds

This issue is about "phase 1" - "Open Projects".

Attached is the full selfsampler for the whole action. First 45 seconds are relevant (with around 2 seconds at the beginning while I was clicking the right context menu).

Things that I feel can be improved:

* open-ClassPath-tostring-2600ms.png - toString() call taking 2600ms seems to be too lengthy

* open-CopyResourcesOnSave-1700ms.png - not sure, looks to be too lengthy for that operation, but has very deep recursion

* open-NbMavenProject-getPackagingType-23000ms.png
  --> open-DefaultArtifactDescriptorReader-readArtifactDescriptor-18500ms.png
    --> open-NbModelBuiler-build-17100ms.png

  These are the most heavy operations.
Comment 1 NukemBy 2015-04-24 10:17:39 UTC
Created attachment 153351 [details]
open-ClassPath-tostring-2600ms.png
Comment 2 NukemBy 2015-04-24 10:17:58 UTC
Created attachment 153352 [details]
open-CopyResourcesOnSave-1700ms.png
Comment 3 NukemBy 2015-04-24 10:18:13 UTC
Created attachment 153353 [details]
open-DefaultArtifactDescriptorReader-readArtifactDescriptor-18500ms.png
Comment 4 NukemBy 2015-04-24 10:18:33 UTC
Created attachment 153354 [details]
open-NbMavenProject-getPackagingType-23000ms.png
Comment 5 NukemBy 2015-04-24 10:18:52 UTC
Created attachment 153355 [details]
open-NbModelBuiler-build-17100ms.png