]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] halog: make fgets parse more bytes by blocks
authorWilly Tarreau <w@1wt.eu>
Sat, 10 Sep 2011 08:25:05 +0000 (10:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 10 Sep 2011 08:46:39 +0000 (10:46 +0200)
commit31a02e9c5bbfc36da3e84cb13e3a48086485beb1
treead99c372437c922f31e8e561d389aac1d52828a3
parente8c7ecc2ddecab4366a46cd949dc8a56d425fabc
[OPTIM] halog: make fgets parse more bytes by blocks

By adding a "landing area" at the end of the buffer, it becomes safe to
parse more bytes at once. On 32-bit this makes fgets run about 4% faster
but it does not save anything on 64-bit.
contrib/halog/fgets2-64.c
contrib/halog/fgets2.c