Re: [Cython] compiler performance issue for extended utility code

2011-10-16 Thread mark florisson
On 16 October 2011 19:51, mark florisson wrote: > Tempita uses re.sub to do the parsing. Most utilities are loaded at > module-level, so perhaps we should use lazy loading like Vitja > suggested. Are the cythonscope utilities loaded? > > On 16 October 2011 19:46, Stefan Behnel wrote: >> mark flor

Re: [Cython] compiler performance issue for extended utility code

2011-10-16 Thread mark florisson
Tempita uses re.sub to do the parsing. Most utilities are loaded at module-level, so perhaps we should use lazy loading like Vitja suggested. Are the cythonscope utilities loaded? On 16 October 2011 19:46, Stefan Behnel wrote: > mark florisson, 08.10.2011 15:18: >> >> On 8 October 2011 13:10, Vit

Re: [Cython] compiler performance issue for extended utility code

2011-10-16 Thread Stefan Behnel
mark florisson, 08.10.2011 15:18: On 8 October 2011 13:10, Vitja Makarov wrote: I've also noticed that some utilities are loaded unconditionally perhaps it's better to introduce lazy loading. Well, they shouldn't be. If they are it's generally a bug. I noticed that it happens in the test runne

Re: [Cython] compiler performance issue for extended utility code

2011-10-09 Thread mark florisson
On 8 October 2011 10:22, mark florisson wrote: > On 8 October 2011 08:03, Stefan Behnel wrote: > > Vitja Makarov, 07.10.2011 18:01: > >>> > >>> 2011/10/7 Stefan Behnel: > > Vitja Makarov, 06.10.2011 23:12: > > > > Here is small comparison on compiling urllib.py with cython: > >

Re: [Cython] compiler performance issue for extended utility code

2011-10-08 Thread mark florisson
On 8 October 2011 13:10, Vitja Makarov wrote: > 2011/10/8 mark florisson : >> On 8 October 2011 08:03, Stefan Behnel wrote: >>> Vitja Makarov, 07.10.2011 18:01: > > 2011/10/7 Stefan Behnel: >> >> Vitja Makarov, 06.10.2011 23:12: >>> >>> Here is small comparison on compilin

Re: [Cython] compiler performance issue for extended utility code

2011-10-08 Thread Vitja Makarov
2011/10/8 mark florisson : > On 8 October 2011 08:03, Stefan Behnel wrote: >> Vitja Makarov, 07.10.2011 18:01: 2011/10/7 Stefan Behnel: > > Vitja Makarov, 06.10.2011 23:12: >> >> Here is small comparison on compiling urllib.py with cython: >> >> ((e8527c5...)) vit

Re: [Cython] compiler performance issue for extended utility code

2011-10-08 Thread mark florisson
On 8 October 2011 08:03, Stefan Behnel wrote: > Vitja Makarov, 07.10.2011 18:01: >>> >>> 2011/10/7 Stefan Behnel: Vitja Makarov, 06.10.2011 23:12: > > Here is small comparison on compiling urllib.py with cython: > > ((e8527c5...)) vitja@mchome:~/work/cython-vitek-git/zzz$

Re: [Cython] compiler performance issue for extended utility code

2011-10-08 Thread Stefan Behnel
Vitja Makarov, 07.10.2011 18:01: 2011/10/7 Stefan Behnel: Vitja Makarov, 06.10.2011 23:12: Here is small comparison on compiling urllib.py with cython: ((e8527c5...)) vitja@mchome:~/work/cython-vitek-git/zzz$ time python ../cython.py urllib.py real0m1.699s user0m1.650s sys 0m0.04