fastest table lookup

Skip Montanaro skip at pobox.com
Mon Oct 25 22:38:51 CEST 2004


    Neal> I need a fairly small lookup table, and I'm wondering which data
    Neal> python data structure would be fastest.  

Define "fairly small", then as others have suggested, test.  I'd be
surprised if dicts were as fast as lists.

Skip





More information about the Python-list mailing list