[erlang-questions] Sending term vs binary
Tue Feb 28 15:28:03 CET 2012
I've been experimenting and binary wins due to references, like you
mentioned. However, it was not efficient to serialize/desirialize it
slows down the processing, you also looses ability to match terms if
pure binary is used. The best way is to re-design an application to
keep small messages. Most probably only small portion out of 500KB
needs to be passed among processes, rest of payload can stay in
On 28.2.2012, at 15.19, "Ignas Vyšniauskas" <> wrote:
> Has anyone done any benchmarking regarding sending big messages as terms
> ("as is") vs binary, i.e.
> time required to send pure term
> total time for doing term_to_binary/1 + sending binary + binary_to_term/1
> Obviously the context here is a single VM with big messages (say >500KB)
> such that only references of binaries are sent and we could actually
> expect some significant differences.
> I'd would be also interesting to hear any other comments regarding such
> potential optimisation.
> erlang-questions mailing list
More information about the erlang-questions