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 19038 - Slow startup due to loading all editor documents
Summary: Slow startup due to loading all editor documents
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords: PERFORMANCE
Depends on: 21618
Blocks:
  Show dependency tree
 
Reported: 2002-01-04 13:03 UTC by Jaroslav Tulach
Modified: 2008-12-22 17:42 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2002-01-04 13:03:03 UTC
I have noticed that the startup time is negatively affected by the amount of
opened text editors. I believe that this is due to the fact that content of all
editors is loaded even it need not be visible (because most editors are in
tabbed mode).

In my opinion the CloneableEditor should be changed to delay the loading of the
document until it is really needed. It might also be possible to first of all
display a text "Loading document..." instead of the JEditorPane and only after
the loading is finished replace it with the actual JEditorPane!?
Comment 1 Petr Nejedly 2002-01-04 13:24:57 UTC
I'd think that displaying "Loading document..." would
1. cause a little slowdown of the actual loading
2. Cause the editor flicker a bit, because the loading
  of a single file should be quite fast anyway.

But one have to try to be sure :-)
Comment 2 _ ttran 2002-01-04 13:48:12 UTC
I find the idea a bit dangerous, definitely needs careful thoughts
before we're going to eventually implement it.

BTW it's not a bug, just an idea how performance _may_ be improved
Comment 3 Jaroslav Tulach 2002-01-07 08:41:45 UTC
Trung, this is example of the problem of sitting on two chairs. It was
agreed that any performance problem is P2/P3 bug - but of course I
understand your desire to improve the bug count.
Comment 4 Jaroslav Tulach 2002-03-15 13:56:05 UTC
Read issue 21618
Comment 5 Peter Zavadsky 2002-05-10 15:15:32 UTC
Fixed in trunk, see #21618.
There is now created the editor pane, only after first time
componentShowing method is called.
Comment 6 Peter Zavadsky 2002-05-10 15:35:26 UTC
Currently are following times:
When restarting IDE with more than one editor components opened, only
the selected one is initialized, the saving time is not as big due to
issue #23340, it depends how many types of other editors remaing not
intialized (there is also some perf gap, XML editor is initialized
always at the beginnig even not used) .
The whe selecting the other editor component they initialization takes
abou 0.2 s, but java 0.6s which I think should be still acceptable.
Comment 7 Marian Mirilovic 2003-09-04 16:20:46 UTC
verified