summaryrefslogtreecommitdiff
path: root/http-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-03-02 17:00:06 -0500
committerNick Mathewson <nickm@torproject.org>2010-03-03 16:45:32 -0500
commitcc1600afefc0c30586b12d916bb2a98ecf2d727b (patch)
treeeea00f4c9feab7a989ffd8002ac7951004cb3309 /http-internal.h
parent2fac0f70a388d3a35a2d7883eeb673c6fbbe16e1 (diff)
downloadlibevent-cc1600afefc0c30586b12d916bb2a98ecf2d727b.tar.gz
Improve the speed of evbuffer_readln()
This makes some cases of bench_http about 5% faster. Our internal evbuffer_strpbrk() function was overly general (it tried to handle all character sets when we only used it for "\r\n"), and not very efficient (it called memchr once for each character in the buffer until it found a \r or a \n). It actually showed up in some profiles for HTTP testing, since evbuffer_readln() calls it when doing loose CRLF detection. This patch replaces it with a faster implementation.
Diffstat (limited to 'http-internal.h')
0 files changed, 0 insertions, 0 deletions