pyRXP Memory Likage???

Robin Becker robin at jessikat.fsnet.co.uk
Thu Apr 18 14:30:14 EDT 2002


In article <c5f48de3.0204161113.14919d25 at posting.google.com>, Jose
Manuel Esteve <chema at imdea.com> writes
>I have been playing with pyRXP and is incredibly fast as compared with
>minidom, also the memory footprint is smaller for one file, however if
>you loop for parsing a lot of xml strings the memory usage gets higher
>and higher as compared to minidom
>
>import pyRXP
>xml='<start><tag1>text here</tag1></start>'
>P=pyRXP.Parser()
>for i in range(0,100000):
>    tup=P.parse(xml)
>
>will show the behaviour

OK I checked in a new version which fixes two leaks. The above seems to
work OK now, on my PC the memory fluctuates a little, but shows no
steady upward movement like before.
-- 
Robin Becker



More information about the Python-list mailing list