[Pyrex] Python object in a struct field
Tom Locke
tom at livelogix.com
Tue Feb 8 11:04:46 CET 2005
sjmachin at lexicon.net wrote:
>Sure did:
>
>http://nz.cosc.canterbury.ac.nz/~greg/python/Pyrex/version/Doc/extension_types.html
>
>
Thanks - this looks like it's the way to go for my optimization - I can
convert my Python classes to extension types, and attributes will be
stored in a C struct for fast access.
I see I can also use 'cdef' methods in the extension type, but I notice
these are virtual, so I assume I will be able to reduce the call
overhead by moving these out to top-level cdef functions, right?
Tom.
More information about the Pyrex
mailing list