[Cython] cython doesn't compile cdef'd variables of type set?

Thomas Keller thomas.e.keller at gmail.com
Wed Oct 1 23:05:00 CEST 2008


Lisandro Dalcin <dalcinl at ...> writes:


> 
> BTW, access to the 'set' methods is not currently optimized in any
> way. If you can help me a bit, we can optimize this, ie. map
> 'someset.add(obj)' to a direct Python C-API call. If you make a heavy
> use of sets this could give you some speedup.
> 


I'm not sure how useful I'll be, but I'd be glad to try helping. The program I
am trying to use this with centers around a loop that heavily uses various set
operations, so I am definitely interested. What files should I look at to see
what to follow? As a disclaimer, I've never tried directly interfacing with the
Python C-API.



More information about the Cython-dev mailing list