diff options
author | das <das@FreeBSD.org> | 2005-04-02 18:52:44 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2005-04-02 18:52:44 +0000 |
commit | 87aa2970305bd4af23f1d21ad5990d9a7c1aa358 (patch) | |
tree | d2267f4f8d33c0e82735d827589bcfb6c959f078 /lib/libc/string/strdup.c | |
parent | 02f22e6e2c170ac230a7ff0afa878825b54994e3 (diff) | |
download | FreeBSD-src-87aa2970305bd4af23f1d21ad5990d9a7c1aa358.zip FreeBSD-src-87aa2970305bd4af23f1d21ad5990d9a7c1aa358.tar.gz |
Replace the current strspn() and strcspn() with significantly faster
implementations inspired by the ones in DragonFly. Unlike the
DragonFly versions, these have a small data cache footprint, and my
tests show that they're never slower than the old code except when the
charset or the span is 0 or 1 characters. This implementation is
generally faster than DragonFly until either the charset or the span
gets in the ballpark of 32 to 64 characters.
Diffstat (limited to 'lib/libc/string/strdup.c')
0 files changed, 0 insertions, 0 deletions