diff options
author | Dan McGee <dan@archlinux.org> | 2010-12-21 02:58:15 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-12-22 00:25:02 +0100 |
commit | 34a78d935ac44fc73becc8bba213cdf0268bb5e0 (patch) | |
tree | 255242ae96734bbf0ed4c914cf049c0ed076a462 /HACKING | |
parent | 126f50ab0b5ee3ed46c5a6ecae241e8af49b0fe2 (diff) | |
download | pacman-34a78d935ac44fc73becc8bba213cdf0268bb5e0.tar.gz pacman-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 'HACKING')
0 files changed, 0 insertions, 0 deletions