Re: [Cython] Bindings performance issue

2011-06-21 Thread Vitja Makarov
2011/6/21 Stefan Behnel : > Vitja Makarov, 21.06.2011 09:07: >> >> 2011/6/21 Stefan Behnel: >>> >>> Vitja Makarov, 20.06.2011 22:23: Wow now we have about 11K tests with 171 errors! https://sage.math.washington.edu:8091/hudson/view/cython-vitek/job/cython-vitek-tests-pyregr

Re: [Cython] Bindings performance issue

2011-06-21 Thread Stefan Behnel
Vitja Makarov, 21.06.2011 09:07: 2011/6/21 Stefan Behnel: Vitja Makarov, 20.06.2011 22:23: Wow now we have about 11K tests with 171 errors! https://sage.math.washington.edu:8091/hudson/view/cython-vitek/job/cython-vitek-tests-pyregr-py27-c/ Yes, that was a low hanging, high value bug. """

Re: [Cython] Bindings performance issue

2011-06-21 Thread Vitja Makarov
2011/6/21 Vitja Makarov : > 2011/6/21 Stefan Behnel : >> Vitja Makarov, 20.06.2011 22:23: >>> >>> Wow now we have about 11K tests with 171 errors! >>> >>> >>> https://sage.math.washington.edu:8091/hudson/view/cython-vitek/job/cython-vitek-tests-pyregr-py27-c/ >> >> Yes, that was a low hanging, high

Re: [Cython] Bindings performance issue

2011-06-21 Thread Vitja Makarov
2011/6/21 Stefan Behnel : > Vitja Makarov, 20.06.2011 22:23: >> >> Wow now we have about 11K tests with 171 errors! >> >> >> https://sage.math.washington.edu:8091/hudson/view/cython-vitek/job/cython-vitek-tests-pyregr-py27-c/ > > Yes, that was a low hanging, high value bug. > > """ > Make cyfunctio

Re: [Cython] Bindings performance issue

2011-06-20 Thread Stefan Behnel
Vitja Makarov, 20.06.2011 22:23: Wow now we have about 11K tests with 171 errors! https://sage.math.washington.edu:8091/hudson/view/cython-vitek/job/cython-vitek-tests-pyregr-py27-c/ Yes, that was a low hanging, high value bug. """ Make cyfunction __name__ attribute writable """ Could you pr

Re: [Cython] Bindings performance issue

2011-06-20 Thread Vitja Makarov
Wow now we have about 11K tests with 171 errors! https://sage.math.washington.edu:8091/hudson/view/cython-vitek/job/cython-vitek-tests-pyregr-py27-c/ -- vitja. ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinf

Re: [Cython] Bindings performance issue

2011-06-04 Thread Vitja Makarov
2011/6/4 mark florisson : > On 4 June 2011 12:24, Vitja Makarov wrote: >> I've tried that: https://github.com/vitek/cython/compare/master..._bindings >> >> Results are not bad: 168 failing tests for pyregr2.7 and 463 for py3 > > Nice, it partly duplicates work in my fusedtypes branch but I suppose

Re: [Cython] Bindings performance issue

2011-06-04 Thread mark florisson
On 4 June 2011 12:24, Vitja Makarov wrote: > I've tried that: https://github.com/vitek/cython/compare/master..._bindings > > Results are not bad: 168 failing tests for pyregr2.7 and 463 for py3 Nice, it partly duplicates work in my fusedtypes branch but I suppose it will have to be reworked anywa

Re: [Cython] Bindings performance issue

2011-06-04 Thread Vitja Makarov
I've tried that: https://github.com/vitek/cython/compare/master..._bindings Results are not bad: 168 failing tests for pyregr2.7 and 463 for py3 -- vitja. ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cyt

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 3:04 PM, mark florisson wrote: > On 2 June 2011 23:59, Robert Bradshaw wrote: >> On Thu, Jun 2, 2011 at 2:45 PM, mark florisson >> wrote: >>> On 2 June 2011 23:34, Robert Bradshaw wrote: On Thu, Jun 2, 2011 at 2:21 PM, mark florisson wrote: > On 2 June 2011

Re: [Cython] Bindings performance issue

2011-06-02 Thread mark florisson
On 3 June 2011 00:04, mark florisson wrote: > On 2 June 2011 23:59, Robert Bradshaw wrote: >> On Thu, Jun 2, 2011 at 2:45 PM, mark florisson >> wrote: >>> On 2 June 2011 23:34, Robert Bradshaw wrote: On Thu, Jun 2, 2011 at 2:21 PM, mark florisson wrote: > On 2 June 2011 23:13, Ro

Re: [Cython] Bindings performance issue

2011-06-02 Thread mark florisson
On 2 June 2011 23:59, Robert Bradshaw wrote: > On Thu, Jun 2, 2011 at 2:45 PM, mark florisson > wrote: >> On 2 June 2011 23:34, Robert Bradshaw wrote: >>> On Thu, Jun 2, 2011 at 2:21 PM, mark florisson >>> wrote: On 2 June 2011 23:13, Robert Bradshaw wrote: > On Thu, Jun 2, 2011 at 2:

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 2:45 PM, mark florisson wrote: > On 2 June 2011 23:34, Robert Bradshaw wrote: >> On Thu, Jun 2, 2011 at 2:21 PM, mark florisson >> wrote: >>> On 2 June 2011 23:13, Robert Bradshaw wrote: On Thu, Jun 2, 2011 at 2:03 PM, mark florisson wrote: If any

Re: [Cython] Bindings performance issue

2011-06-02 Thread mark florisson
On 2 June 2011 23:34, Robert Bradshaw wrote: > On Thu, Jun 2, 2011 at 2:21 PM, mark florisson > wrote: >> On 2 June 2011 23:13, Robert Bradshaw wrote: >>> On Thu, Jun 2, 2011 at 2:03 PM, mark florisson >>> wrote: >>> >>> If anyone is assigning a Cython function to an object and then using >

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 2:21 PM, mark florisson wrote: > On 2 June 2011 23:13, Robert Bradshaw wrote: >> On Thu, Jun 2, 2011 at 2:03 PM, mark florisson >> wrote: >> >> If anyone is assigning a Cython function to an object and then using >> it they're counting on the current non-binding be

Re: [Cython] Bindings performance issue

2011-06-02 Thread mark florisson
On 2 June 2011 23:13, Robert Bradshaw wrote: > On Thu, Jun 2, 2011 at 2:03 PM, mark florisson > wrote: > > If anyone is assigning a Cython function to an object and then using > it they're counting on the current non-binding behavior, and it will > break. The speed is probably a lesse

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 2:03 PM, mark florisson wrote: If anyone is assigning a Cython function to an object and then using it they're counting on the current non-binding behavior, and it will break. The speed is probably a lesser issue, which is what benchmarks are for. >>> >>

Re: [Cython] Bindings performance issue

2011-06-02 Thread mark florisson
On 2 June 2011 22:16, Robert Bradshaw wrote: > On Thu, Jun 2, 2011 at 1:00 PM, mark florisson > wrote: >> On 2 June 2011 18:31, Robert Bradshaw wrote: >>> On Thu, Jun 2, 2011 at 1:30 AM, Vitja Makarov >>> wrote: 2011/6/2 Robert Bradshaw : > On Wed, Jun 1, 2011 at 7:26 AM, Vitja Makaro

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 1:00 PM, mark florisson wrote: > On 2 June 2011 18:31, Robert Bradshaw wrote: >> On Thu, Jun 2, 2011 at 1:30 AM, Vitja Makarov >> wrote: >>> 2011/6/2 Robert Bradshaw : On Wed, Jun 1, 2011 at 7:26 AM, Vitja Makarov wrote: > 2011/6/1 mark florisson : >>

Re: [Cython] Bindings performance issue

2011-06-02 Thread Vitja Makarov
2011/6/2 Robert Bradshaw : >> Initially bindings was written to support bound class methods (am I right?) >> So when we use it for regular functions 'binding' in the name doesn't >> reflect its purpose. > > There's three kinds of functions we create: PyCFunctions, binding > PyCFunctions, and extens

Re: [Cython] Bindings performance issue

2011-06-02 Thread mark florisson
On 2 June 2011 18:31, Robert Bradshaw wrote: > On Thu, Jun 2, 2011 at 1:30 AM, Vitja Makarov wrote: >> 2011/6/2 Robert Bradshaw : >>> On Wed, Jun 1, 2011 at 7:26 AM, Vitja Makarov >>> wrote: 2011/6/1 mark florisson : > On 31 May 2011 20:25, Vitja Makarov wrote: >> Hi! >> >

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 1:30 AM, Vitja Makarov wrote: > 2011/6/2 Robert Bradshaw : >> On Wed, Jun 1, 2011 at 7:26 AM, Vitja Makarov >> wrote: >>> 2011/6/1 mark florisson : On 31 May 2011 20:25, Vitja Makarov wrote: > Hi! > > Is bindings performance issue valuable? > > $

Re: [Cython] Bindings performance issue

2011-06-02 Thread Vitja Makarov
2011/6/2 Robert Bradshaw : > On Wed, Jun 1, 2011 at 7:26 AM, Vitja Makarov wrote: >> 2011/6/1 mark florisson : >>> On 31 May 2011 20:25, Vitja Makarov wrote: Hi! Is bindings performance issue valuable? $ cat bindbench.pyx def wo_bindings():    pass def

Re: [Cython] Bindings performance issue

2011-06-01 Thread Robert Bradshaw
On Wed, Jun 1, 2011 at 7:26 AM, Vitja Makarov wrote: > 2011/6/1 mark florisson : >> On 31 May 2011 20:25, Vitja Makarov wrote: >>> Hi! >>> >>> Is bindings performance issue valuable? >>> >>> $ cat bindbench.pyx >>> def wo_bindings(): >>>    pass >>> >>> def outer(): >>>    def inner(): >>>      

Re: [Cython] Bindings performance issue

2011-06-01 Thread Vitja Makarov
2011/6/1 mark florisson : > On 31 May 2011 20:25, Vitja Makarov wrote: >> Hi! >> >> Is bindings performance issue valuable? >> >> $ cat bindbench.pyx >> def wo_bindings(): >>    pass >> >> def outer(): >>    def inner(): >>        pass >>    return inner >> with_bindings = outer() >> >> $ python >

Re: [Cython] Bindings performance issue

2011-06-01 Thread mark florisson
On 31 May 2011 20:25, Vitja Makarov wrote: > Hi! > > Is bindings performance issue valuable? > > $ cat bindbench.pyx > def wo_bindings(): >    pass > > def outer(): >    def inner(): >        pass >    return inner > with_bindings = outer() > > $ python import timeit timeit.repeat('with_

[Cython] Bindings performance issue

2011-05-31 Thread Vitja Makarov
Hi! Is bindings performance issue valuable? $ cat bindbench.pyx def wo_bindings(): pass def outer(): def inner(): pass return inner with_bindings = outer() $ python >>> import timeit >>> timeit.repeat('with_bindings()', setup='from bindbench import wo_bindings, >>> with_bin