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.
This commit is contained in:
Nick Mathewson
2018-01-16 12:42:40 -05:00
parent e3ab27001f
commit 4bb831e087
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
o Minor bugfixes (performance, fragile-hardening):
- Improve the performance of our consensus-diff application code when Tor
is built with the --enable-fragile-hardening option set. Fixes bug
24826; bugfix on 0.3.1.1-alpha.