Brent Pedersen wrote:
> timing on my machine, that gives:
> 
> vector append 1.19197511673
> python append 6.57795596123
> vector get 0.080246925354
> python get 2.01052689552

Note: if you provide the correct types for the C++ code, you should do the
same thing for the Cython code. Typing the list "a" as "cdef list a" should
give you better performance here, for both a.append() and a[i].

You can also look at the generated C++ code to see how it shrinks.

Stefan

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to