diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-28 00:37:27 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-12 21:22:48 +0200 |
commit | a27bdcfe51e0c6eac30d8fbc5dcc2a67a1c1b929 (patch) | |
tree | 6cbd1ebd1a903e845abba9ab2452227ab17e5a3c /lib/libalpm/po/remove-potcdate.sin | |
parent | 89fe19f3e102dae379c00e5b45dd1d42a6963962 (diff) | |
download | pacman-a27bdcfe51e0c6eac30d8fbc5dcc2a67a1c1b929.tar.gz pacman-a27bdcfe51e0c6eac30d8fbc5dcc2a67a1c1b929.tar.xz |
_alpm_archive_fgets: optimize EOL search
Instead of iterating character by character, use memchr() calls to
hopefully speed up the search. A newline is the most likely culprit, so
search for that first followed by a NULL byte if there was no newline in
the buffer.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/po/remove-potcdate.sin')
0 files changed, 0 insertions, 0 deletions