Erlang's External Term Format BIFs
seem quite adequate
as a way to encode Elixir's built-in data types as binaries.
And, given that they are low-level routines,
we are unlikely to be able to improve much (if at all) on their speed:
In Erlang, the BIF term_to_binary/1,2
is used to convert a term into the external format.
To convert binary data encoding a term,
the BIF binary_to_term/1 is used.
The data types which we plan to import from Clojure
(Array Map, Seq, Sorted Map, Vector) are all composites,
so no low-level encoding will be needed for them.
To be continued...
This wiki page is maintained by Rich Morin
an independent consultant specializing in software design, development, and documentation.
Please feel free to email
comments, inquiries, suggestions, etc!