best(fastest) way to send and get lists from files

Steve Holden steve at holdenweb.com
Thu Jan 31 17:03:03 EST 2008


Abrahams, Max wrote:
> I've looked into pickle, dump, load, save, readlines(), etc.
> 
> Which is the best method? Fastest? My lists tend to be around a thousand to a million items.
> 
> Binary and text files are both okay, text would be preferred in general unless there's a significant speed boost from something binary.
> 
> thanks

benchmarks are the only reliable way to get this information for your 
particular tasks.

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list