]> sourceware.org Git - glibc.git/commit
Optimize the strlen implementation by using a page cross check and a fast check
authorWilco Dijkstra <wdijkstr@arm.com>
Mon, 13 Jul 2015 11:38:12 +0000 (12:38 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Mon, 13 Jul 2015 11:38:12 +0000 (12:38 +0100)
commitc435989f52204703d524f467c830dc363439e532
treecd0a248d2790e747cd3d0fb103184dd38f295a81
parent70249b57e1e5f8252948fd0ab46773ad20216e23
Optimize the strlen implementation by using a page cross check and a fast check
for nul bytes which reverts to separate loop when a non-ASCII char is encountered.
Speedup on test-strlen is ~10%, long ASCII strings are processed ~60% faster,
and on random tests it is ~80% better.
ChangeLog
sysdeps/aarch64/strlen.S
This page took 0.03677 seconds and 5 git commands to generate.