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 143063 - Icons of projects are shown slowly in Open Project dialog
Summary: Icons of projects are shown slowly in Open Project dialog
Status: RESOLVED DUPLICATE of bug 146370
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: rmichalsky
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2008-08-06 15:09 UTC by Lukas Hasik
Modified: 2008-09-06 00:13 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (19.45 KB, image/jpeg)
2008-08-06 15:11 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2008-08-06 15:09:54 UTC
1,when I open hg main directory then the directories are shown with "folder icon". After a while they start changing to
"module icon". The change is really slow but there is really lot of modules. Can't we use FitnessViaLazyness to speed it up?

2, the same happens for NetBeansProjects folder where are only a few projects
Comment 1 Lukas Hasik 2008-08-06 15:11:53 UTC
Created attachment 66704 [details]
screenshot
Comment 2 Milan Kubec 2008-08-06 15:16:43 UTC
Milos knows some very secret and tricky way how to do it, reassigning to him.
Comment 3 Milos Kleint 2008-08-07 10:51:51 UTC
i've introduced a way to delay creation of project lookup until it's really needed.
http://hg.netbeans.org/main/rev/59c2842584f4
While it helped a bit it's not really significant. I assume it's because there's still a lot of work done in Netbeans
module project class in it's constructor. 

reassigning to apisupport owners to consider moving the code from constructor elsewhere.
Comment 4 Quality Engineering 2008-08-07 16:28:10 UTC
Integrated into 'main-golden', available in build *200808071401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/59c2842584f4
User: Milos Kleint <mkleint@netbeans.org>
Log: #143063 introducing lazy lookup that shall prevent complete project lookup initialization within the open project dialog.
Comment 5 Jesse Glick 2008-08-07 21:51:21 UTC
I'm not sure what else there is to do. Would need profiler results. I guess LazyLookup can help avoid creating a few
objects, though the expensive stuff - classpath initialization - was already deferred until later.
Comment 6 Lukas Hasik 2008-09-04 13:28:05 UTC
this issue is highly visible. It happens when user just scrolls through a directory with more projects. I'm always
surprised when I scroll. Then I have to count to ten and the I can find our what is it is a dir or a project.

Is anybody going to profile it?
Comment 7 rmichalsky 2008-09-04 13:36:28 UTC
I'll take a look at it.
Comment 8 Jesse Glick 2008-09-06 00:13:45 UTC
I made some tweaks to timing in issue #146370 which might help. On my laptop the display of icons is pretty fast.

*** This issue has been marked as a duplicate of 146370 ***