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 29832 - XMLSettingsHandler.searchFolder (save all system options at shutdown) is pretty slow
Summary: XMLSettingsHandler.searchFolder (save all system options at shutdown) is pret...
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: rmatous
Depends on:
Blocks: 20190
  Show dependency tree
Reported: 2003-01-07 16:10 UTC by Jesse Glick
Modified: 2008-12-22 20:24 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2003-01-07 16:10:38 UTC
Shows up as a big time hit in a profiler during
shutdown, esp. w/ lookup caching enabled which
otherwise avoids parsing most .settings during
rest of IDE session. Current impl finds every
instance in Services (folder traversal) and asks
it if it is instanceOf whatever option.
getCookie(InstanceCookie.class) is the major time
drain: causes parsing of XML. Better to somehow
"remember" where an option came from; perhaps some
secret property in SystemOption.
Comment 1 Jan Pokorsky 2003-01-08 15:17:03 UTC
In age of nb<3.2 some SOs (debugger?) relied on the fact that the
projects infra. writes down all SOs when closing a project. Since it
was not part of any public contract, maybe it could be removed
entirely now. nb 4.0 will provide the api to allow to track opening
and closing of projects.
Comment 2 rmatous 2003-02-26 13:10:03 UTC
Target milestone marked 4.0, According to Jan there should be
replacement for this strange way how to track projects opening. 
Comment 3 David Konecny 2003-02-27 10:25:13 UTC
Looks like settings issue.
Comment 4 _ tboudreau 2003-03-03 10:20:39 UTC
FYI doing this may also force classloading on shutdown.  I've
noticed the CORBA module getting a bunch of its classes suddenly
loaded during IDE shutdown, when running with verbose gc.
Comment 5 David Konecny 2004-04-01 11:41:03 UTC
Tonda, this might be of interest for you. However I do not know if you
track also shutdown of app.
Comment 6 Jan Chalupa 2004-11-08 22:53:00 UTC
So I guess this won't get addressed for 4.0. TM should be updated.
Comment 7 _ rkubacki 2005-03-29 15:15:21 UTC
This is no longer a problem in 4.1. There is no XMLsettingsHandler now.

What I see as a biggest trouble in current shutdown is saving of winsys +
persisting of MDR data. Saving of winsys is related to settings and there are
bugs for this problem but probably needs to be fixed at a different place.
Comment 8 Tomas Danek 2005-07-22 11:18:32 UTC
i agree, closing this.