Okay cool thanks your input.
For any one else has a similar problem - writing a simple iterator function
in python (which is a generator) and assigning that to the __iter__ member
works well as an alternative. For me this turned out to be considerably
faster than using a c++ iterator/getitem itera
On 01/19/2012 02:08 PM, babak wrote:
Hi guys,
Has anyone encountered (what feels like) quite slow iteration when looping
over small containers ? I'm in a situation where I'm iterating over 10+
3d vectors and its taking much longer than I'd expect. The vector type is
bound via boost::python a
Hi guys,
Has anyone encountered (what feels like) quite slow iteration when looping
over small containers ? I'm in a situation where I'm iterating over 10+
3d vectors and its taking much longer than I'd expect. The vector type is
bound via boost::python and has an iter method which uses range(