]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: Optimize printf_format_fix_noalloc()
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 29 Nov 2016 21:21:17 +0000 (23:21 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 20 Dec 2016 07:36:13 +0000 (09:36 +0200)
commitc38f69924b6fd2ff697ee87a3371ade4fd66ae15
tree46925cdc41036445b6be33c72d7e958d88906139
parent28f5ddb56a78d68ec25de4cf55ea846ae87bfa8a
lib: Optimize printf_format_fix_noalloc()

Using strchr() is faster than looping through the characters manually.
Since this function is being called a lot, it's worth optimizing.
src/lib/printf-format-fix.c