Matthew Martin β β π on Nostr: 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
#python
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
#python