[erlang-questions] Sending term vs binary

Masklinn masklinn@REDACTED
Tue Feb 28 15:54:45 CET 2012

On 2012-02-28, at 15:12 , Lukas Larsson wrote:
> There might be something to gain if you are going to send the huge
> term in between a chain of processes without decoding it, but that
> seems like an unlikely scenario.

Or do a custom encoding of the data (instead of using raw terms) and
having intermediate data consumers do binary matching to access the
stuff they need, if that stuff is small enough.

If the data blob is big, that could lead to significant gains.
Especially if the binary contains some sort of index header allowing
consumers to "jump" directly to what they need (by ignoring what comes
before) and not have to iterate the binary itself.

More information about the erlang-questions mailing list