Wow, ast.literal_eval and eval are slow. Serialization/Deserialization...

@mistersql

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!