[erlang-questions] string concatenation efficiency

Khitai Pang <>
Thu Jan 28 08:22:22 CET 2016


Hi,

For string concatenation, which one of the following is the most efficient?

1)
strings:join(["Item:{", ItemID, "}")], ""]

2)
lists:append(["Item:{", ItemID, "}")])

3)
"Item:{" ++ ItemID ++ "}"

Here ItemID is a UUID.


Thanks
Khitai


More information about the erlang-questions mailing list