Improve fragile-hardening performance of consensus_split_lines.
commit4bb831e0873e7e4468a44dbf9e253bcd5df18421
authorNick Mathewson <nickm@torproject.org>
Tue, 16 Jan 2018 17:42:40 +0000 (16 12:42 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 16 Jan 2018 17:42:40 +0000 (16 12:42 -0500)
treecbbaed743e01779d341f6ced564ddccb462d0a3d
parente3ab27001f81dc05eb1dd1ac8371a35ccce2b50d
Improve fragile-hardening performance of consensus_split_lines.

For whatever reason, in my testing, using memchr() here improves
performance over strchr() by a great deal.

Fixes bug 24826; bugfix on 0.3.1.1-alpha.
changes/bug24826_031 [new file with mode: 0644]
src/or/consdiff.c