1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-10 03:25:01 -05:00
pacman/lib/libalpm
Dan McGee 0bc961a8be 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>
2009-10-24 10:10:12 -05:00
..
po Update Chinese translation 2009-10-11 12:55:17 -05:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c typing: a few more fixes for special int types 2009-10-11 14:41:59 -05:00
add.h Change the interface for target loading 2009-09-12 13:06:43 +02:00
alpm_list.c alpm_list : add new alpm_list_diff_sorted function 2009-10-11 15:28:10 -05:00
alpm_list.h alpm_list : add new alpm_list_diff_sorted function 2009-10-11 15:28:10 -05:00
alpm.c Update copyright headers and messages 2009-07-01 02:08:33 -05:00
alpm.h use bitwise shift operator in enum "bit field" 2009-10-11 22:13:49 -05:00
backup.c typing: a few more fixes for special int types 2009-10-11 14:41:59 -05:00
backup.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
be_files.c Size handling was changed in fgets() functions 2009-10-19 07:37:53 -05:00
be_package.c cygwin fix : use unsigned char for ctype function 2009-10-11 15:12:20 -05:00
cache.c Update copyright headers and messages 2009-07-01 02:08:33 -05:00
cache.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
conflict.c Remove transaction type 2009-09-08 22:17:41 -05:00
conflict.h Add a new reason field to pmconflict_t struct 2009-09-08 21:58:52 -05:00
db.c int typing: s/unsigned short/int/ in libalpm 2009-10-11 13:51:47 -05:00
db.h use bitwise shift operator in enum "bit field" 2009-10-11 22:13:49 -05:00
delta.c delta : simple code refactoring 2009-09-20 11:57:12 -05:00
delta.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
deps.c Use sync.c for upgrade transaction prepare and commit 2009-09-08 22:04:14 -05:00
deps.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
dload.c dload.c : clear sigaction flag to make valgrind happy 2009-10-20 22:25:39 -05:00
dload.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
error.c sync.c : duplicate the target before modifying it 2009-09-20 11:56:46 -05:00
graph.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
group.c Update copyright headers and messages 2009-07-01 02:08:33 -05:00
group.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
handle.c Add missing get_usedelta() method 2009-10-11 14:42:04 -05:00
handle.h int typing: s/unsigned short/int/ in libalpm 2009-10-11 13:51:47 -05:00
log.c Update copyright headers and messages 2009-07-01 02:08:33 -05:00
log.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
Makefile.am Refactor pkg_load/parse_descfile into a new backend file 2008-05-11 20:07:55 -05:00
md5.c Fix compile warning fail on older versions of GCC 2009-06-30 23:14:18 -05:00
md5.h libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
package.c Reduce unnecessary get_name() function calls 2009-10-24 10:10:12 -05:00
package.h int typing: s/unsigned short/int/ in libalpm 2009-10-11 13:51:47 -05:00
remove.c Reduce calls to list_count() in removing package 2009-10-11 14:42:04 -05:00
remove.h Change the interface for target loading 2009-09-12 13:06:43 +02:00
sync.c Fix "-Sd conflict_pkg" bug 2009-10-11 15:30:52 -05:00
sync.h Change the interface for target loading 2009-09-12 13:06:43 +02:00
trans.c Size handling was changed in fgets() functions 2009-10-19 07:37:53 -05:00
trans.h Remove transaction type 2009-09-08 22:17:41 -05:00
util.c Rework the alpm_unpack functions 2009-10-11 15:18:47 -05:00
util.h Rework the alpm_unpack functions 2009-10-11 15:18:47 -05:00