]> git.tuebingen.mpg.de Git - paraslash.git/commit
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)
commitbf1831886b93258ffcec63c47d6737fffff53aae
tree981fc5691a4b38139d58960c2ef222d164649d9e
parentbcc0838f240081150a5d11f176326efe95a7d382
string: Speed up xvasprintf().

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.
string.c