Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #83752

Re: Performance in exec environnements

References <mailman.17684.1421168544.18130.python-list@python.org> <54b592ac$0$12995$c3e8da3$5496439d@news.astraweb.com> <CABUUr0yYBM=EJpcZXX2mJ0pz13Tum8px3Z8y3EZcr0VEo6Bfpw@mail.gmail.com> <CAPTjJmoTyMuLaY-z06Bfiw-SSratCkRMktQ1mQ2UhG=7jm6vZg@mail.gmail.com>
Date 2015-01-14 14:38 +0100
Subject Re: Performance in exec environnements
From Jean-Baptiste Braun <jbaptiste.braun@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.17719.1421242733.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

2015-01-14 12:14 GMT+01:00 Chris Angelico <rosuav@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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Performance in exec environnements Jean-Baptiste Braun <jbaptiste.braun@gmail.com> - 2015-01-13 18:02 +0100
  Re: Performance in exec environnements Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-14 08:48 +1100
    Re: Performance in exec environnements Jean-Baptiste Braun <jbaptiste.braun@gmail.com> - 2015-01-14 10:02 +0100
      Re: Performance in exec environnements Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-15 12:51 +1100
    Re: Performance in exec environnements Chris Angelico <rosuav@gmail.com> - 2015-01-14 22:14 +1100
    Re: Performance in exec environnements Jean-Baptiste Braun <jbaptiste.braun@gmail.com> - 2015-01-14 14:38 +0100
    Re: Performance in exec environnements Chris Angelico <rosuav@gmail.com> - 2015-01-15 00:43 +1100
    Re: Performance in exec environnements Ian Kelly <ian.g.kelly@gmail.com> - 2015-01-14 10:11 -0700

csiph-web