martin v löwis qpnyslvloewisde nick coghlan wrote martin v löwis wrote slow example given one returned items needs long py3k longs inside object arent right inside longs returned items longs one way optimise since need support counting rather arbitrary arithmetic would longrange iterator use simple pure c fixed point arithmetic internally keep track arbitrarily long counter convert python long like optimised shortrange iterator im sure worth hassle though simple pure c fixed point arithmetic would thinking long type pure c fixed point arithmetic perhaps simplifications possible longrangeiter_next possible eg doesnt need perform multiplication could add step time also could cache value 1 global variable rather creating fresh one time imagine another fixed point arithmetic might significantly faster regards martin _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom fri 08 aug 2008 082826 0200 python3000 range issues