[Cython] List type, link on Wiki front-page
Robert Bradshaw
robertwb at math.washington.edu
Mon May 4 23:41:18 CEST 2009
On May 4, 2009, at 2:33 PM, Stéfan van der Walt wrote:
> 2009/5/4 Dag Sverre Seljebotn <dagss at student.matnat.uio.no>:
>> 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
More information about the Cython-dev
mailing list