[Cython] __next__ | not being able to use cpdef
Jelle Feringa
jelleferinga at gmail.com
Mon Dec 8 23:24:46 CET 2008
>> Out of curiosity, would most of the time be spent on the line "return
>> self.obj[self.i]"? It seems like a __getitem__ call would be much
>> slower than anything else in the class.
>
> Yes, almost certainly.
Hi Aaron, Robert,
Thanks for your response; any suggestion what might be more efficient
than a __getitem__ call?
Or is this class doomed by design?
Cheers,
-jelle
More information about the Cython-dev
mailing list