Re: [Cython] [cython-users] freelist benchmarks

2013-02-27 Thread Robert Bradshaw
On Tue, Feb 26, 2013 at 11:24 PM, Stefan Behnel wrote: > Robert Bradshaw, 26.02.2013 21:16: >> On Mon, Feb 25, 2013 at 1:17 AM, Stefan Behnel wrote: >>> David Roe, 25.02.2013 00:00: I changed the current type pointer check to look at tp_basicsize instead. > That made it work for almo

Re: [Cython] [cython-users] freelist benchmarks

2013-02-26 Thread Stefan Behnel
Robert Bradshaw, 26.02.2013 21:16: > On Mon, Feb 25, 2013 at 1:17 AM, Stefan Behnel wrote: >> David Roe, 25.02.2013 00:00: >>> I changed the current type pointer check to look at tp_basicsize instead. >>> That made it work for almost all classes in lxml's own Element hierarchy, with only

Re: [Cython] [cython-users] freelist benchmarks

2013-02-26 Thread Robert Bradshaw
On Mon, Feb 25, 2013 at 1:17 AM, Stefan Behnel wrote: > Hi, > > thanks for looking through it. > > David Roe, 25.02.2013 00:00: >> I changed the current type pointer check to look at tp_basicsize instead. >> >>> That made it work for almost all classes in lxml's own Element hierarchy, >>> with onl

Re: [Cython] [cython-users] freelist benchmarks

2013-02-25 Thread Stefan Behnel
Hi, thanks for looking through it. David Roe, 25.02.2013 00:00: > I changed the current type pointer check to look at tp_basicsize instead. > >> That made it work for almost all classes in lxml's own Element hierarchy, >> with only a couple of exceptions in lxml.objectify that have one additiona

Re: [Cython] [cython-users] freelist benchmarks

2013-02-24 Thread David Roe
I changed the current type pointer check to look at tp_basicsize instead. > That made it work for almost all classes in lxml's own Element hierarchy, > with only a couple of exceptions in lxml.objectify that have one additional > object field. So, just extending the freelist support to use two dif

Re: [Cython] [cython-users] freelist benchmarks

2013-02-24 Thread Stefan Behnel
mark florisson, 24.02.2013 18:56: > On 24 February 2013 17:50, mark florisson wrote: >> On 24 February 2013 15:58, Stefan Behnel wrote: >>> mark florisson, 24.02.2013 15:50: On 24 February 2013 13:52, Stefan Behnel wrote: > for those who haven't notice my other e-mail, I implemented a ne

Re: [Cython] [cython-users] freelist benchmarks

2013-02-24 Thread mark florisson
On 24 February 2013 15:58, Stefan Behnel wrote: > mark florisson, 24.02.2013 15:50: >> On 24 February 2013 13:52, Stefan Behnel wrote: >>> for those who haven't notice my other e-mail, I implemented a new extension >>> type decorator "@cython.freelist(N)" that replaces the normal object >>> creati

Re: [Cython] [cython-users] freelist benchmarks

2013-02-24 Thread mark florisson
On 24 February 2013 17:50, mark florisson wrote: > On 24 February 2013 15:58, Stefan Behnel wrote: >> mark florisson, 24.02.2013 15:50: >>> On 24 February 2013 13:52, Stefan Behnel wrote: for those who haven't notice my other e-mail, I implemented a new extension type decorator "@cython

Re: [Cython] [cython-users] freelist benchmarks

2013-02-24 Thread Stefan Behnel
mark florisson, 24.02.2013 15:50: > On 24 February 2013 13:52, Stefan Behnel wrote: >> for those who haven't notice my other e-mail, I implemented a new extension >> type decorator "@cython.freelist(N)" that replaces the normal object >> creation and deallocation with a freelist of N recently freed