summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-28 00:37:27 +0200
committerDan McGee <dan@archlinux.org>2011-10-12 21:22:48 +0200
commita27bdcfe51e0c6eac30d8fbc5dcc2a67a1c1b929 (patch)
tree6cbd1ebd1a903e845abba9ab2452227ab17e5a3c /lib/libalpm/db.c
parent89fe19f3e102dae379c00e5b45dd1d42a6963962 (diff)
downloadpacman-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/db.c')
0 files changed, 0 insertions, 0 deletions