[erlang-questions] strings vs binaries

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Wed Aug 19 12:27:38 CEST 2015

On Wed, Aug 19, 2015 at 11:44 AM, Robert Virding <rvirding@REDACTED> wrote:

> Someone did some benchmarking on this a few years ago to compare the speed
> of using binary utf-8 encoded strings vs list strings. They arrived at the
> for them surprising result that using list strings was actually faster.

Indeed, the speed characteristics is a complex affair involving CPU types,
caches, workload, how data is passed around and so on. What I am
specifically trying to warn about is the memory imprint, which is much
greater for string() types.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150819/334616b4/attachment.htm>

More information about the erlang-questions mailing list