On Oct 1, 2008, at 2:05 PM, Thomas Keller wrote: > Lisandro Dalcin <[EMAIL PROTECTED]> 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 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
