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.
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!?
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 :-)
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
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.
Read issue 21618
Fixed in trunk, see #21618. There is now created the editor pane, only after first time componentShowing method is called.
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.
verified