The question is broad, here is my specific context:
- I only use
term_to_binaryto dump binary to postgresql, and read back withbinary_to_term - I don't use
term_to_binaryto produce any identifier or to compare data. - My data types are only (from Elixir), map, list, string, number, nil, boolean. (i.e. no function, no atom, no struct)
Why not jsonb? It's ridiculously slow. Erlang term <-> binary is much much faster. (more than 10x)
Will binary_to_term be always able to read binary produced by any previous version of term_to_binary?
Thanks!