On May 4, 2009, at 2:33 PM, Stéfan van der Walt wrote:

> 2009/5/4 Dag Sverre Seljebotn <[email protected]>:
>> Using append at the same time would cause a lot of trouble though  
>> (but
>> again, they might have changed append to raise an exception if a  
>> buffer
>> is acquired in Py2.6+ -- I don't know).
>
> This is my main use-case:  I need a homogenous container that
> automatically resizes when it is full.  Maybe the performance impact
> of Python lists isn't even so bad -- I was only worried because I saw
> lots of yellow in my annotated pyx :)

Lists are actually rather fast. As a rule of thumb, yellow != slow,  
it just means that you're using the Python/C API (which is still  
often a good place to look for slowness).

- Robert

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

Reply via email to