[Cython] cython doesn't compile cdef'd variables of type set?
Robert Bradshaw
robertwb at math.washington.edu
Wed Oct 1 23:17:43 CEST 2008
On Oct 1, 2008, at 2:05 PM, Thomas Keller wrote:
> 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.
You could look at how list and dict are handled at the bottom of
http://hg.cython.org/cython-devel/file/c9f3badef047/Cython/Compiler/
Builtin.py
- Robert
More information about the Cython-dev
mailing list