1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/lib/libalpm
Dan McGee 3863e48788 Add a likely_pkg hint argument to sync_db_read
In most (all?) cases, we will process all files for a given sync database
entry sequentially. The code currently does an _alpm_pkg_find() for every
file in the database, but we had the "current" package readily available.
Shift some local variables around a bit to expose this to sync_db_read() and
use it if the package is the correct one.

On my system, this cuts calls to _alpm_pkg_find() from 20,769 to 10,349
calls during a -Qu operation, and results in a ~30% speedup of the same
operation (0.35 sec -> 0.27 sec). This benefit should be apparent anywhere
we read in the full contents of the sync databases.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-21 10:11:59 -06:00
..
po Separate be_files into be_sync and be_local 2010-10-14 13:17:38 +10:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Remove need for floating point division in backend 2011-01-10 10:49:55 -06:00
add.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
alpm_list.c Use size_t for alpm_list sizes 2011-01-07 21:15:46 -06:00
alpm_list.h Use size_t for alpm_list sizes 2011-01-07 21:15:46 -06:00
alpm.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
alpm.h Add a progressbar for package integrity checking 2011-01-11 21:15:10 -06:00
backup.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
backup.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
be_local.c Fix double filelist issue when upgrading a package 2011-01-11 21:16:39 -06:00
be_package.c Small fix to download size lookup and a logger 2011-01-11 21:15:04 -06:00
be_sync.c Add a likely_pkg hint argument to sync_db_read 2011-01-21 10:11:59 -06:00
conflict.c Remove need for floating point division in backend 2011-01-10 10:49:55 -06:00
conflict.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
db.c Fix some more simple conversion "errors" 2011-01-07 21:15:47 -06:00
db.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
delta.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
delta.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
deps.c Improve depends string parsing 2011-01-21 09:14:47 -06:00
deps.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
diskspace.c Call archive_read_data_skip() while checking diskspace 2011-01-11 21:15:24 -06:00
diskspace.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
dload.c Fix some more simple conversion "errors" 2011-01-07 21:15:47 -06:00
dload.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
error.c Unify two free diskspace error messages 2011-01-11 21:15:24 -06:00
graph.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
group.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
group.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
handle.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
handle.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
log.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
log.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
Makefile.am Prototype disk space checking functionality 2010-12-12 20:29:37 -06:00
md5.c libalpm md5: use larger and dynamic buffer 2010-09-02 10:33:21 -05:00
md5.h libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
package.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
package.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
remove.c Fix double filelist issue when upgrading a package 2011-01-11 21:16:39 -06:00
remove.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
sync.c Fix integrity check status when installing from file 2011-01-18 13:19:25 -06:00
sync.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
trans.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
trans.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
util.c Improve splitname memory allocation 2011-01-21 09:14:47 -06:00
util.h Add strndup fallback function to libalpm util 2011-01-21 09:14:47 -06:00
version.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00