Skip to content

Comment on Don't Pickle Your Data

Comments

Your benchmarks don't mean much because you're giving different data to different packers.

cPickle gets a list of objects but json gets a list of dictionaries? The cost of converting the objects into the dictionaries is conveniently excluded from the json benchmark.

You should try serializing the same list of dictionaries, use the highest pickle protocol and repost results.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.