> And, in case the array size needs to be determined at runtime, why not
> just
> use a regular Python tuple?

I agree. It seems array lookup is not the bottleneck here, but object
creation. He should just store a container on module scope. I would have
used a Python list as it is mutable.

cdef list myhash = [extclass() for n in range(bufsize)]


S.M.


_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to