Performance in exec environnements
jbaptiste.braun at gmail.com
Wed Jan 14 14:38:44 CET 2015
2015-01-14 12:14 GMT+01:00 Chris Angelico <rosuav at gmail.com>:
> Would it be possible to do a one-off transformation of the entire XSLT
> file into a Python module with a single function in it, and then every
> time you need that XSLT, you import that module and call the function?
> That would potentially be a lot quicker than exec(), *and* would be
> much clearer - there'd be an actual file on the disk with your
> generated Python code, and anyone could read it and understand what
> it's doing.
I've done some tests executing compiled generated python and it doesn't
seem to be worth over processing xslt directly. What you propose could be a
solution. In fact I'm not sure yet how it will be designed.
Thank you for feedback anyway.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list