Marien Zwart, 03.05.2010 20:22:
> It might be nice to add:
>      _handle_simple_method_list_pop = _handle_simple_method_object_pop
>
> somewhere in Cython/Compiler/Optimize.py, which at least makes Cython
> not generate worse code for the more restrictively typed list (tested it
> briefly, the resulting code looked reasonable and compiled).

That's also the right thing to do. The resulting code is just about as fast 
as a specialised function for typed lists, so it's not worth doing anything 
more than that.

Thanks!

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

Reply via email to