LISTS: Extract every other element
Randall Hopper
aa8vb at yahoo.com
Tue Dec 21 07:21:51 EST 1999
Christian Tismer:
|Your results are most interesting. Mike did the Numeric tests
|without re-converting to a true list. You do it, and then
|I beat Numeric. This was what I expected, btw.
I figured it wouldn't be fair not to have the output of all algorithms be
the same type of list.
|I also assume that you do one test after the other, many times?
|If not, I loose! :-))
I thought about that. But the difference isn't that much. One would think
the algorithms at the bottom might pay a price due to increased memory
fragmentation and garbage collection overhead, but commenting out all but
one (yours or the mxTools fragment for example) reveals a difference in the
0.01-0.03 second range. Background noise.
--
Randall Hopper
aa8vb at yahoo.com
More information about the Python-list
mailing list