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 26915 - Current Welcome panel is slow to validate/show
Summary: Current Welcome panel is slow to validate/show
Status: CLOSED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Welcome (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Richard Gregor
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2002-08-30 10:42 UTC by mslama
Modified: 2005-03-09 04:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
welcome page patch (11.36 KB, patch)
2002-10-09 12:26 UTC, _ rkubacki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mslama 2002-08-30 10:42:11 UTC
I just tried to meassure start up of winsys in our
new prototype of new desktop. Call of validate()
takes about 500ms when Welcome panel is displayed.
This time does not include painting. You can get
some feeling when you start prototype with and
without Welcome panel. I can show anytime.
Comment 1 _ rkubacki 2002-10-09 12:26:30 UTC
Created attachment 7620 [details]
welcome page patch
Comment 2 _ rkubacki 2002-10-09 12:47:52 UTC
I attached patch for welcome page that simplifies the HTML structure
little bit and fixes some small problems. Note that lists are easier
to render in general than tables. OTOH in current version items are
indented more than is desired. I don't want to spent much time on this
because it is likely that the page will be very different in next release.

There are too many classes - each button has its custom class although
some of them are not used. Welcome editor should be removed as there
is no trick with AA now.

Structure of screen it too complex - three JEditorPanes rendered with
HTML editor kit together with some additional stuff are evil. Either
use modified HTML rendering that will be capable to create buttons and
tooltip are or come with another solution.
Comment 3 Richard Gregor 2003-03-11 11:21:08 UTC
Hi,

attached patch is unusable. Using list was considered as not good in
preliminary design of welcome because UI design is different. That's
reason why I used table instead. For fixing this we should change
design of welcome screen or get rid of HTMl code. However core team
insisted on HTML. Scheduling for 4.0. 
Comment 4 Jan Chalupa 2003-03-14 09:07:40 UTC
NOS1S5 - Sun ONE Studio will use a different Welcome Screen that
shouldn't suffer from performance problems.
Comment 5 _ rkubacki 2003-04-29 08:30:25 UTC
Richard, what is wrong with list (and can't be fixed)? Who can explain
it? Note that this performance bug affects all starts until you kill
this window.

If you don't want to make substantial rewrite of this complex panel I
would suggest at least: 
use correct HTML (use some validator to see how many garbage is there)
remove tag attributes not recognized by JDK to speed up parsing.
consider the count of classes.
Comment 6 Richard Gregor 2003-04-29 08:42:13 UTC
Hi Radim,

There is problem with visual look when list is used. I implemented
welcome with list as first version of welcome in HML (HTML was
requested by core by the way). It wasn't approved by UI. I'm thinking
about substantial rewrite of welcome. There should be good proposal at
first. But I promise that for the next release there will be new
implementation, probably without HTML.I also don't like slow startup
of IDE and do my best.
Comment 7 Richard Gregor 2004-02-04 14:53:47 UTC
There is new implementation of welcome for NB3.6. It is much faster so
signing this as fixed.
Comment 8 Marian Mirilovic 2004-06-23 06:40:00 UTC
verified / closed