diff options
author | James R. Barlow <james@purplerock.ca> | 2020-06-25 09:50:49 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2020-10-17 01:57:29 +0200 |
commit | 3fc7c99d02f9ba3045a7f085bf8f74132c174b59 (patch) | |
tree | 3e6171c0bffed9ccfc49d5dc87a11744cc6e84a2 /ispell-words | |
parent | 3221022fc9f10a3dd28a46e333485cfe3597c5c4 (diff) | |
download | qpdf-3fc7c99d02f9ba3045a7f085bf8f74132c174b59.tar.zst |
Replace memchr with manual memory search
On large files with predominantly \n line endings, memchr(..'\r'..)
seems to waste a considerable amount of time searching for a line
ending candidate that we don't need.
On the Adobe PDF Reference Manual 1.7, this commit is 8x faster at
QPDF::processMemoryFile().
Diffstat (limited to 'ispell-words')
0 files changed, 0 insertions, 0 deletions