--===============1263927556== Content-Type: multipart/signed; boundary="nextPart1178106.JVQthQZSW8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1178106.JVQthQZSW8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 30 October 2005 16:50, Ariya Hidayat wrote: > I'd like to give a try to implement alternative DOM implementation > which does not consume as much memory as typical QDom classes.=20 Cool!! > The idea is as follows. Each node does not necessarily load the > attributes and its children at once, but rather only on-demand. Upon > loading the main document, only information about the first level > nodes/elements (which are children of the document) are loaded.=20 Yes, that sounds good. > Node can also have unload() method which explicitly purged its data > from memory. This is useful when the program knows it will not use the > node anymore. =46ine for a first version; I was more thinking of having a pool of objects= =20 (with attributes as well as nodes) and when the pool is full the ones=20 longest not accessed will be automatically deleted. > I expect a performance degradation since parsing needs to be performed > many times.=20 The slow part in XML parsing are things like the conversion of file-bytes=20 to encoded text to integers. Doing this lazily will probably save a lot=20 of time. > However, I estimate that memory requirement will be much=20 > less. My guess is that this is worth doing it. I agree. > So I'm starting to work on this, and comments are warmly appreciated. If you have an initial setup (i.e. non crashing :), feel free to post it=20 somewhere with the unit tests so we can play with it and provide=20 feedback. Thanks for picking this up! =2D-=20 Thomas Zander --nextPart1178106.JVQthQZSW8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDZO9GCojCW6H2z/QRAihOAJ94dfAs4JRv2GG5fJDH85bkfmA8FwCfRceR Hxr/XRiFXvu8ikc5ONIQz4c= =cgJ8 -----END PGP SIGNATURE----- --nextPart1178106.JVQthQZSW8-- --===============1263927556== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel --===============1263927556==--