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 201451 - ProjectUtils calls ProjectInformation.getIcon in EQ, can be slow
Summary: ProjectUtils calls ProjectInformation.getIcon in EQ, can be slow
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Stupka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-08-30 17:32 UTC by gilbertoca
Modified: 2015-07-22 14:20 UTC (History)
15 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 180818


Attachments
nps snapshot (112.30 KB, application/nps)
2011-08-30 17:32 UTC, gilbertoca
Details
screenshot (147.98 KB, image/png)
2012-03-21 06:55 UTC, Milos Kleint
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gilbertoca 2011-08-30 17:32:06 UTC
This bug was originally marked as duplicate of bug 176474, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201108290601)
VM: Java HotSpot(TM) Client VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Linux

User Comments:
gilbertoca: openning a maven project



Maximum slowness yet reported was 7079 ms, average is 7079
Comment 1 gilbertoca 2011-08-30 17:32:13 UTC
Created attachment 110286 [details]
nps snapshot
Comment 2 Milos Kleint 2012-03-21 06:55:44 UTC
Created attachment 116965 [details]
screenshot
Comment 3 Jesse Glick 2012-03-26 23:09:15 UTC
ProjectUtils should avoid calling getIcon synch.

At one point I was looking into making Maven's impl of ProjectInformation return some stub info quickly and then fire a change when the real info becomes available; but this turned out to cause a lot of problems. Better to find callers which are blocking on the result, and make them run later.
Comment 4 Tomas Stupka 2015-07-22 14:20:53 UTC
no more reports since 7.4, closing for now