Re: [Cython] AddTraceback() slows down generators

2012-01-29 Thread mark florisson
On 29 January 2012 12:10, Stefan Behnel wrote: > Stefan Behnel, 28.01.2012 21:14: >> mark florisson, 28.01.2012 20:07: >>> On 28 January 2012 18:38, Stefan Behnel wrote: Stefan Behnel, 27.01.2012 09:02: > any exception *propagation* is > still substantially slower than necessary, and

Re: [Cython] AddTraceback() slows down generators

2012-01-29 Thread Stefan Behnel
Stefan Behnel, 28.01.2012 21:14: > mark florisson, 28.01.2012 20:07: >> On 28 January 2012 18:38, Stefan Behnel wrote: >>> Stefan Behnel, 27.01.2012 09:02: any exception *propagation* is still substantially slower than necessary, and that's a general issue. >>> >>> Here's a general take o

Re: [Cython] AddTraceback() slows down generators

2012-01-29 Thread Stefan Behnel
Vitja Makarov, 28.01.2012 21:41: > 2012/1/29 Stefan Behnel: >> Vitja Makarov, 28.01.2012 20:58: >>> 2012/1/28 mark florisson: On 28 January 2012 19:41, Vitja Makarov wrote: > 2012/1/28 Stefan Behnel: >> Here's a general take on a code object cache for exception propagation. >>

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread Vitja Makarov
2012/1/29 Stefan Behnel : > Vitja Makarov, 28.01.2012 20:58: >> 2012/1/28 mark florisson : >>> On 28 January 2012 19:41, Vitja Makarov wrote: 2012/1/28 Stefan Behnel : > Stefan Behnel, 27.01.2012 09:02: >> any exception *propagation* is >> still substantially slower than necessary

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread mark florisson
On 28 January 2012 19:59, Vitja Makarov wrote: > 2012/1/28 mark florisson : >> On 28 January 2012 19:48, mark florisson wrote: >>> On 28 January 2012 19:41, Vitja Makarov wrote: 2012/1/28 Stefan Behnel : > Stefan Behnel, 27.01.2012 09:02: >> any exception *propagation* is >> sti

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread Stefan Behnel
Vitja Makarov, 28.01.2012 20:58: > 2012/1/28 mark florisson : >> On 28 January 2012 19:41, Vitja Makarov wrote: >>> 2012/1/28 Stefan Behnel : Stefan Behnel, 27.01.2012 09:02: > any exception *propagation* is > still substantially slower than necessary, and that's a general issue.

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread Stefan Behnel
mark florisson, 28.01.2012 20:07: > On 28 January 2012 18:38, Stefan Behnel wrote: >> Stefan Behnel, 27.01.2012 09:02: >>> any exception *propagation* is >>> still substantially slower than necessary, and that's a general issue. >> >> Here's a general take on a code object cache for exception propa

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread Vitja Makarov
2012/1/28 mark florisson : > On 28 January 2012 19:48, mark florisson wrote: >> On 28 January 2012 19:41, Vitja Makarov wrote: >>> 2012/1/28 Stefan Behnel : Stefan Behnel, 27.01.2012 09:02: > any exception *propagation* is > still substantially slower than necessary, and that's a gen

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread Vitja Makarov
2012/1/28 mark florisson : > On 28 January 2012 19:41, Vitja Makarov wrote: >> 2012/1/28 Stefan Behnel : >>> Stefan Behnel, 27.01.2012 09:02: any exception *propagation* is still substantially slower than necessary, and that's a general issue. >>> >>> Here's a general take on a code obje

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread mark florisson
On 28 January 2012 19:48, mark florisson wrote: > On 28 January 2012 19:41, Vitja Makarov wrote: >> 2012/1/28 Stefan Behnel : >>> Stefan Behnel, 27.01.2012 09:02: any exception *propagation* is still substantially slower than necessary, and that's a general issue. >>> >>> Here's a gener

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread mark florisson
On 28 January 2012 19:41, Vitja Makarov wrote: > 2012/1/28 Stefan Behnel : >> Stefan Behnel, 27.01.2012 09:02: >>> any exception *propagation* is >>> still substantially slower than necessary, and that's a general issue. >> >> Here's a general take on a code object cache for exception propagation.

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread Vitja Makarov
2012/1/28 Stefan Behnel : > Stefan Behnel, 27.01.2012 09:02: >> any exception *propagation* is >> still substantially slower than necessary, and that's a general issue. > > Here's a general take on a code object cache for exception propagation. > > https://github.com/scoder/cython/commit/ad18e0208

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread mark florisson
On 28 January 2012 18:38, Stefan Behnel wrote: > Stefan Behnel, 27.01.2012 09:02: >> any exception *propagation* is >> still substantially slower than necessary, and that's a general issue. > > Here's a general take on a code object cache for exception propagation. > > https://github.com/scoder/cy

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread Stefan Behnel
Stefan Behnel, 27.01.2012 09:02: > any exception *propagation* is > still substantially slower than necessary, and that's a general issue. Here's a general take on a code object cache for exception propagation. https://github.com/scoder/cython/commit/ad18e0208 When I raise an exception in test c

Re: [Cython] AddTraceback() slows down generators

2012-01-27 Thread Stefan Behnel
Vitja Makarov, 27.01.2012 20:17: > https://github.com/cython/cython/commit/7ae9d5b9a66bb586cd0d03b3aa137eb762602087 Looks like it worked: https://sage.math.washington.edu:8091/hudson/job/cython-devel-pybenchmarks-py3k/318/artifact/bench_chart.html#nqueens https://sage.math.washington.edu:8091/hu

Re: [Cython] AddTraceback() slows down generators

2012-01-27 Thread Vitja Makarov
2012/1/27 Stefan Behnel : > Vitja Makarov, 27.01.2012 12:02: >> I'll push my patch to upstream. > > Please do. > https://github.com/cython/cython/commit/7ae9d5b9a66bb586cd0d03b3aa137eb762602087 > >> One question: does it close the ticket or not? > > No. > > >> Perhaps it's better to rename your t

Re: [Cython] AddTraceback() slows down generators

2012-01-27 Thread Stefan Behnel
Vitja Makarov, 27.01.2012 12:02: > I'll push my patch to upstream. Please do. > One question: does it close the ticket or not? No. > Perhaps it's better to rename your ticket to something like > "AddTraceback() is slow" as itsn't related to generators. Ok, I'll do that and hang the time mach

Re: [Cython] AddTraceback() slows down generators

2012-01-27 Thread Vitja Makarov
2012/1/27 Stefan Behnel : > Stefan Behnel, 26.01.2012 21:57: >> Vitja Makarov, 26.01.2012 21:19: >>> 2012/1/27 Stefan Behnel: Robert Bradshaw, 21.01.2012 23:09: > On Sat, Jan 21, 2012 at 10:50 AM, Stefan Behnel wrote: >> I did some callgrind profiling on Cython's generators and was sur

Re: [Cython] AddTraceback() slows down generators

2012-01-27 Thread Stefan Behnel
Stefan Behnel, 26.01.2012 21:57: > Vitja Makarov, 26.01.2012 21:19: >> 2012/1/27 Stefan Behnel: >>> Robert Bradshaw, 21.01.2012 23:09: On Sat, Jan 21, 2012 at 10:50 AM, Stefan Behnel wrote: > I did some callgrind profiling on Cython's generators and was surprised to > find that AddTrac

Re: [Cython] AddTraceback() slows down generators

2012-01-26 Thread Stefan Behnel
Vitja Makarov, 26.01.2012 21:19: > 2012/1/27 Stefan Behnel: >> Robert Bradshaw, 21.01.2012 23:09: >>> On Sat, Jan 21, 2012 at 10:50 AM, Stefan Behnel wrote: I did some callgrind profiling on Cython's generators and was surprised to find that AddTraceback() represents a serious performance

Re: [Cython] AddTraceback() slows down generators

2012-01-26 Thread Vitja Makarov
2012/1/27 Stefan Behnel : > Robert Bradshaw, 21.01.2012 23:09: >> On Sat, Jan 21, 2012 at 10:50 AM, Stefan Behnel wrote: >>> I did some callgrind profiling on Cython's generators and was surprised to >>> find that AddTraceback() represents a serious performance penalty for short >>> running generat

Re: [Cython] AddTraceback() slows down generators

2012-01-26 Thread Stefan Behnel
Robert Bradshaw, 21.01.2012 23:09: > On Sat, Jan 21, 2012 at 10:50 AM, Stefan Behnel wrote: >> I did some callgrind profiling on Cython's generators and was surprised to >> find that AddTraceback() represents a serious performance penalty for short >> running generators. >> >> I profiled a compiled

Re: [Cython] AddTraceback() slows down generators

2012-01-21 Thread Robert Bradshaw
On Sat, Jan 21, 2012 at 10:50 AM, Stefan Behnel wrote: > Hi, > > I did some callgrind profiling on Cython's generators and was surprised to > find that AddTraceback() represents a serious performance penalty for short > running generators. > > I profiled a compiled Python implementation of itertoo

Re: [Cython] AddTraceback() slows down generators

2012-01-21 Thread Dag Sverre Seljebotn
On 01/21/2012 07:50 PM, Stefan Behnel wrote: Hi, I did some callgrind profiling on Cython's generators and was surprised to find that AddTraceback() represents a serious performance penalty for short running generators. I profiled a compiled Python implementation of itertools.groupby(), which y