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 45042 - Do not use DOM for form loading
Summary: Do not use DOM for form loading
Status: RESOLVED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-06-16 17:31 UTC by _ rkubacki
Modified: 2004-08-13 12:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2004-06-16 17:31:38 UTC
Specialized SAX parser should be faster and less
memory intensive than current solution implemented
in GandalfPersistenceManager that builds whole DOM
document.
Comment 1 Tomas Pavek 2004-06-22 09:54:12 UTC
I really doubt SAX parser would bring some significant improvement. I
did a thorough measuring of the form loading process some time ago and
parsing the form file to DOM tree was around 100ms even for really
large forms. See attachments 7391, 7392 and 7393 in issue 27183 for
details.  So rewriting GandalfPersistenceManager to SAX is IMO not
worth the effort (would be laborious and risky).
Comment 2 _ ttran 2004-06-22 10:18:17 UTC
your numbers are probably correct for .form files which are usually
small.  The saving of using SAX instead of DOM is mostly about
avoiding the need to load DOM classes which affect memory consumption
and first time opening of .form