What is Nostr?
Matthew Martin β˜‘ βœ…πŸ“› /
npub1anj…k3c3
2023-08-12 15:46:34

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
Author Public Key
npub1anj34n7xep997cj6w4d7mysld6kx48d2d7ggzuz8jqwmuq332ghs5tk3c3