basho/lager — pull request #25 by Vagabond (2011-10-28 02:30:13+00:00)
Title: Faster string formatting

This pull request rewrites the truncating format to use a modified version of the formatting from io_lib_format.erl that uses trunc_io to manage the length of the resulting string. This removes the need for a big complicated regexp in lager to parse format strings (and the need for one to chomp newlines). This results in a very significant speed improvement for the formatting calls, which are very important to lager's overall performance.