This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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 cortex-strings test is ~10%, long ASCII strings are processed ~60% faster, and on random tests it is ~80% better. OK for commit?
Attachment:
strlen.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |