item access time: sets v. lists

David Isaac aisaac0 at verizon.net
Wed Oct 4 13:29:36 EDT 2006


Paul M. wrote:
> Random access to item in list/set when item exists
> set  -> 0.000241650824337
> list -> 0.0245168031132
>
> Random access to item in list/set when item does not exist
> set  -> 0.000187733357172
> list -> 0.522086186932


OK, that's a much better set of answers
including to questions I did not
even know I wanted to ask until
I saw your post.  But, how to
explain the above??

Thanks,
Alan Isaac





More information about the Python-list mailing list