Re: [Cython] memory view creation during cascaded assignments

2014-07-06 Thread Stefan Behnel
Hi Mark! Mark Florisson, 05.07.2014 14:49: > On 5 July 2014 11:34, Stefan Behnel wrote: >> I started optimising cascaded assignments a little to reduce the >> unnecessary duplication of coercions. >> It's explicitly tested for that we create two independent memory views in >> this case. Is there a

Re: [Cython] memory view creation during cascaded assignments

2014-07-05 Thread Mark Florisson
Hi Stefan, On 5 July 2014 11:34, Stefan Behnel wrote: > Hi, > > I started optimising cascaded assignments a little to reduce the > unnecessary duplication of coercions. While doing that, I found this test > in memslice.pyx: > > ''' > def cascaded_buffer_assignment(obj): > """ > >>> A = In

[Cython] memory view creation during cascaded assignments

2014-07-05 Thread Stefan Behnel
Hi, I started optimising cascaded assignments a little to reduce the unnecessary duplication of coercions. While doing that, I found this test in memslice.pyx: ''' def cascaded_buffer_assignment(obj): """ >>> A = IntMockBuffer("A", range(6)) >>> cascaded_buffer_assignment(A) acqui