[XML-SIG] 4XSLT Performance Problems with Large Files
Thomas B. Passin
tpassin@home.com
Sat, 15 Sep 2001 21:33:38 -0400
[I wrote]
My script uses cDomlette; I don't know what
> 4xslt.bat uses, though I suspect it's not cDomlette for reasons that will
be
> apparent.
>
I've now verified that the uncontrolled appropriation of memory for my large
transformation is definitely associated with the use of pDomlette. I
changed my script to use p- instead of c-Domlette, and got the same
unrestrained appetite I had seen in the 4xslt.bat driver. Changing my
script back to use cDomlette restored the limited use of memory I had
originally seen.
Here is the code fragment I've been changing (I took it from some 4suite
code quite a while ago):
from Ft.Lib import pDomlette
BETA_DOMLETTE = 1#os.environ.get("BETA_DOMLETTE")
if BETA_DOMLETTE and not validate_flag:
from Ft.Lib import cDomlette
g_readerClass = cDomlette.RawExpatReader
reader = cDomlette.RawExpatReader()
elif validate_flag:
reader = pDomlette.SaxReader(validate=1)
else:
reader = pDomlette.PyExpatReader()
I just changed the 1 on the second line to a zero to use pDomlette.
Cheers,
Tom P