Am 2013-08-22 01:12, schrieb Robert Bradshaw:
> Using a Python list is probably the fastest way to iterate over an
> array of Python objects--it's a PyObject** under the hood and Cython
> uses the C API calls to get at it. 

Ok, thanks for the clearification.

> Your "check" might be the
> bottleneck, especially if it's a Python call.

I could remove that bottleneck. Now the bottleneck is in my original
"something". I have to live with that. But, indeed, the list was not the
problem. Thanks.

> Also, no need to write this as a while loop; just use "for a in
> range(1000000)" and it'll do the right thing (a C for loop).

I used the while loop, since I want a to be Integer and not int (I need
that for the calculations).

Many thanks,

Daniel


-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to