diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-27 17:37:27 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-12 14:22:48 -0500 |
commit | a27bdcfe51e0c6eac30d8fbc5dcc2a67a1c1b929 (patch) | |
tree | 6cbd1ebd1a903e845abba9ab2452227ab17e5a3c /src/pacman/po/lt.po | |
parent | 89fe19f3e102dae379c00e5b45dd1d42a6963962 (diff) |
_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 'src/pacman/po/lt.po')
0 files changed, 0 insertions, 0 deletions