[sugar] Activities are recompiled on every launch

2008-03-23 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In order to run a python program (.py), the python interpreter must first compile it to bytecode. The bytecode is stored in a .pyc file, when possible. In the case of installed packages, like NumPy or Sugar, the .pyc files are generated during instal

Re: [sugar] Activities are recompiled on every launch

2008-03-23 Thread Martin Langhoff
On Sun, Mar 23, 2008 at 7:02 PM, Benjamin M. Schwartz <[EMAIL PROTECTED]> wrote: > # time python -c "import compileall; > compileall.compile_dir('/usr/share/activities/TamTamEdit.activity/', > force=True, quiet=True)" > real 0m3.902s > user 0m3.460s > sys 0m0.440s > > All measurements were

Re: [sugar] Activities are recompiled on every launch

2008-03-23 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Langhoff wrote: | On Sun, Mar 23, 2008 at 7:02 PM, Benjamin M. Schwartz | <[EMAIL PROTECTED]> wrote: |> # time python -c "import compileall; |> compileall.compile_dir('/usr/share/activities/TamTamEdit.activity/', |> force=True, quiet=True)" |

Re: [sugar] Activities are recompiled on every launch

2008-04-07 Thread Tomeu Vizoso
On Mon, Mar 24, 2008 at 2:05 AM, Benjamin M. Schwartz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > Martin Langhoff wrote: > | On Sun, Mar 23, 2008 at 7:02 PM, Benjamin M. Schwartz > | <[EMAIL PROTECTED]> wrote: > |> # time python -c "import compileall; >