summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/version.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-20 19:58:15 -0600
committerDan McGee <dan@archlinux.org>2010-12-21 17:25:02 -0600
commit34a78d935ac44fc73becc8bba213cdf0268bb5e0 (patch)
tree255242ae96734bbf0ed4c914cf049c0ed076a462 /lib/libalpm/version.c
parent126f50ab0b5ee3ed46c5a6ecae241e8af49b0fe2 (diff)
downloadpacman-34a78d935ac44fc73becc8bba213cdf0268bb5e0.tar.xz
Remove need for memory allocation in _alpm_depcmp
Noticed when tweaking testdb, when we run _alpm_depcmp in loops and call it seven million times, the strdup()/free() combo can add up. Remove the need for any string duplication by some pointer manipulation and use of strncmp instead of strcmp. Also kill the function logger and add an escape so we don't needlessly retrieve the list of provides. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/version.c')
0 files changed, 0 insertions, 0 deletions