From: David Vallner Date: 2006-11-04T09:40:25+09:00 Subject: Re: REXML ... performance & memory usage ... --------------enig5ACDE43A92F05694B92113AC Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Jeff Wood wrote: > Wow ... I am trying to use REXML to parse through an 8.8Mb xml file ...= > it currently eats almost 800Mb of ram before it seems to do anything ..= =2E >=20 At that file size, I'd also slightly start thinking of biting into the bitter pill and using stream / pull parsing instead of tree parsing. Even with using a C parser a DOM buildup is not going to do much good for performance if you need to to processing at that scale more than seldom. But then again, there's the premature optimization quote that says to wait with that just yet. David Vallner --------------enig5ACDE43A92F05694B92113AC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFS+Fsy6MhrS8astoRAkurAJwKmmRIfd2RJFgTETW29vpoIS9orQCeJi5q tBcFrGTvbLNVsY/a33O+e+0= =pNE2 -----END PGP SIGNATURE----- --------------enig5ACDE43A92F05694B92113AC--