0

What do you think is the fastest deserialization method? Pickle? YAML? or JSONPickle?

2
  • When using cPickle (use that instead of pickle!), be sure to use the HIGHEST_PROTOCOL. Commented Jul 8, 2010 at 7:53
  • 2
    There's nothing to think--just test it yourself and find out. Commented Jul 8, 2010 at 8:21

1 Answer 1

1

I'd imagine cPickle would be the fastest method of serialisation, though it's just an (educated) guess. It's written in pure C, with Python bindings, and uses a binary format for storing objects, thus should be pretty fast!

Sign up to request clarification or add additional context in comments.

2 Comments

yes cpickle is the best but i cannot use c extensions in AppEngine where i am deploying :)
Ah, that kind of sucks. Just test pickle and see if it's good/efficient enough for your purposes, perhaps? I love how easy it is to use.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.