diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-08-30 09:24:28 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-01 11:33:28 -0500 |
commit | 11ab9aa9f5f0f3873df89c73e8715b82f485bd9b (patch) | |
tree | 905d304d3d75e72ab91a7fd3c4bc71fe4e346401 /doc/submitting-patches.txt | |
parent | cf1f0143935fe62ebb568202ff83ba2de0815995 (diff) | |
download | pacman-11ab9aa9f5f0f3873df89c73e8715b82f485bd9b.tar.xz |
pacman/callback: reuse strlen calculation
Call strlen earlier in the dl progress callback, and reuse this length
to replace some heavier str*() calls with more optimized mem*()
replacements. This also gets rid of a false assumption that the ending
string will ever be longer than the original string.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'doc/submitting-patches.txt')
0 files changed, 0 insertions, 0 deletions