siberian-fast-food / alogger

Simply the best logging framework for Erlang
Apache License 2.0
50 stars 16 forks source link

Eliminating "tuple expression" overhead #5

Open si14 opened 13 years ago

si14 commented 13 years ago

For now, alog_pt makes following: ?DBG({A, B, "test ~p"}, [foobar]) → dbg(io_lib:format("A: ~p B: ~p ~s", [A, B, "test ~p"]), [foobar]) There is another way to do this with less overhead: ?DBG({A, B, "test ~p"}, [foobar]) → dbg("A: ~p B: ~p test ~p", [A, B, foobar])