3 ms·
"much faster than Pickle" That isn't saying much, though. https://www.benfrederickson.com/images/python-serialization/speed.png https://www.benfrederickson.co
by tyingq 6y ago
"much faster than Pickle"
That isn't saying much, though.
https://www.benfrederickson.com/images/python-serialization/speed.png https://www.benfrederickson.com/images/python-serialization/...
- jzer0cool 6y agoUnrelated: What is this *pickle* term origin? Python errors sometimes generate some "Could not pickle" errors and not sure what it tries to convey ...
- tyingq 6y agoPickling a cucumber stores and preserves it for later use, so the term is used for serialization. Still an odd analogy though, since you can't unpickle a pickle. I've heard freeze/thaw which is at least a little better.
- jdub 6y agoIt's Python. So it's Monty Python.
- bobbylarrybobby 6y agoPickle is the Python module that (de)serializes Python objects to some sort of binary format. Failure to pickle means the object couldn’t be serialized — the most common instance is probably trying to pass a lambda to a multiprocessing worker, because they don’t have names (you should use a def or functions.partial instead).