Re: [Freevo-devel] python -O

2003-07-31 Thread Matthieu Weber
On Thu 31.07.2003 at 07:17:06AM -0400, Aubin Paul wrote: I'm going to enable it in CVS right now; I don't imagine there will be any problems. If files change, they are recompiled as before. I'm not even clear on what the downside is. There seem to be no problem: I added a ``-O'' in the

Re: [Freevo-devel] python -O

2003-07-31 Thread Aubin Paul
Ok, I tried that... let's see what happens/breaks/goes faster :) I assume the downside is longer startup the first time it's run A I'm pretty sure it's negligible after that. Aubin On Thu, Jul 31, 2003 at 02:38:35PM +0300, Matthieu Weber wrote: On Thu 31.07.2003 at 07:17:06AM -0400, Aubin Paul

Re: [Freevo-devel] python -O

2003-07-31 Thread Thomas Schueppel
On Thu, 31 Jul 2003, Aubin Paul wrote: I'm going to enable it in CVS right now; I don't imagine there will be any problems. If files change, they are recompiled as before. I'm not even clear on what the downside is. If I remember right, the code is not compiled into a

Re: [Freevo-devel] python -O

2003-07-31 Thread Aubin Paul
On Thu, Jul 31, 2003 at 02:26:40PM +0200, Thomas Schueppel wrote: If I remember right, the code is not compiled into a platform independant bytecode but in platform depandant code. Hence the only thing we need to make sure is that there are no pyos in our distro but

Re: [Freevo-devel] python -O

2003-07-31 Thread Wan Tat Chee
On Thu, 31 Jul 2003, Aubin Paul wrote: /usr/bin/python2.3 -OO /usr/lib/python2.3/compileall.py /path/to/freevo This will byte-compile everything and will avoid the first run/access slowdowns. Debian does this with packages, it could be done with RPMs too. That's what I do in the

[Freevo-devel] python -O

2003-07-30 Thread Aubin Paul
I tried running Freevo last night with 'python -O src/main.py' and it seemed noticeably faster... Is there any reason we don't use it by default? Aubin --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports,

Re: [Freevo-devel] python -O

2003-07-30 Thread Krister Lagerstrom
I tried running Freevo last night with 'python -O src/main.py' and it seemed noticeably faster... Is there any reason we don't use it by default? Not that I can remember. It might be worth looking into using Python 2.3, besides all the new goodies it is supposedly faster too. /

Re: [Freevo-devel] python -O

2003-07-30 Thread Wan Tat Chee
On Wed, 30 Jul 2003, Aubin Paul wrote: I tried running Freevo last night with 'python -O src/main.py' and it seemed noticeably faster... Is there any reason we don't use it by default? I've no objections as long as it's still shipped as part of the runtime. I don't know what trickery RedHat

Re: [Freevo-devel] python -O

2003-07-30 Thread Aubin Paul
It's not a Python 2.3-only feature; all the 2.x versions support -O as far as I know. -O just compiles to .pyo instead of .pyc and is faster. On Thu, Jul 31, 2003 at 09:49:29AM +0800, Wan Tat Chee wrote: On Wed, 30 Jul 2003, Aubin Paul wrote: I tried running Freevo last night with 'python -O

Re: [Freevo-devel] python -O

2003-07-30 Thread Wan Tat Chee
On Wed, 30 Jul 2003, Aubin Paul wrote: It's not a Python 2.3-only feature; all the 2.x versions support -O as far as I know. -O just compiles to .pyo instead of .pyc and is faster. I see. So do we plan to activate this for the next release? What happens to *.py that were changed since the