]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
string: Speed up xvasprintf().
authorAndre Noll <maan@systemlinux.org>
Mon, 25 Mar 2013 19:05:05 +0000 (19:05 +0000)
committerAndre Noll <maan@systemlinux.org>
Thu, 2 May 2013 17:56:09 +0000 (19:56 +0200)
This avoids to call vsnprintf() twice in the common case where the
result is small.

The running time of a simple test case that called this function in
a loop improved from 13s to 8s due to this change.


No differences found