Better use of io:format and io_lib:format

Bernardo Alvez manprog@REDACTED
Thu Oct 1 12:52:10 CEST 2009


Hi all,

Which  of the following is better to use in terms of performance and
resources usage?:

io:format("hello ~s", ["world"]).
or
io:format(<<"hello ~s">>, [<<"world">>]).

Thanks,
Bernardo


More information about the erlang-questions mailing list