[erlang-questions] strings vs binaries
Jesper Louis Andersen
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...
More information about the erlang-questions