Wow, ast.literal_eval and eval are slow. Serialization/Deserialization...
Wow, ast.literal_eval and eval are slow.
Serialization/Deserialization
------------------------------
Pickle: 0.7 seconds
JSON: 2.8 seconds
HBN (repr +ast.literal_eval): 23.4 seconds
HBN (repr + eval): 22.2 seconds
The slow part is the eval, the repr part is only 1.1 seconds
Self-replies
HBN (repr + exec): 17.5 seconds
Next to write it to a file and import it dynamically....
HBN (repr + write to .py file + import + reload module) : 9.7 seconds
WOW. This stupid hack is 2x faster than ast.literal_eval, eval and exec!
Okay, published a new version of hissbytenotation, fixed a bad bug, added config, speed benchmarks, tox passes. I should benchmark it against markpickle.