summaryrefslogtreecommitdiffstats
path: root/pactest/ChangeLog
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-10-21 06:25:38 +0200
committerDan McGee <dan@archlinux.org>2009-10-24 17:10:12 +0200
commit0bc961a8be1adc1dabc4089d7f67a95cb603f450 (patch)
tree8e5dcfa318768708ba3e668ec1987b74ee38dc91 /pactest/ChangeLog
parent748bc8ebd41f5553c139c530358a72a83def7126 (diff)
downloadpacman-0bc961a8be1adc1dabc4089d7f67a95cb603f450.tar.gz
pacman-0bc961a8be1adc1dabc4089d7f67a95cb603f450.tar.xz
Reduce unnecessary get_name() function calls
alpm_pkg_get_name() gives us little benefit in backend code besides a NULL check on the package passed in; we could do that ourself if necessary. By changing to direct references in the cases where we are sure we have a valid package, we save a function call each time we need a package name. This function can't be inlined because it is externally accessible. This cuts the calls to get_name() from 1.3 million times in a pacman -Qu operation to around 2400. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/ChangeLog')
0 files changed, 0 insertions, 0 deletions