"Stringizing" a list

Peter Schneider-Kamp nowonder at nowonder.de
Wed Aug 9 14:20:53 EDT 2000


Duncan Booth wrote:
> 
> You could remove the recursion:
[nice code]

Mhh, eliminating the 20000 function calls in my profiling
example reduced the time needed by 15%. YMMV, of course,
but I think that is by far the *fastest* version yet.
For elegance I would vote for the recursive flatten, though.

now-we-only-need-a-C-implementation-ly y'rs
Peter
--
Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter at schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de




More information about the Python-list mailing list