1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/lib/libalpm
Dan McGee 9d6568da0f _alpm_lstat: only duplicate string if necessary
The vast majority of the time we will just be passing the same string
value on to the lstat() call. The only time we need to duplicate it is
if the path ends in '/'. In one run using a profiler, only 400 of the
200,000 calls (0.2%) required the string to be copied first.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-09 14:14:55 -05:00
..
po 3.5.2 translation updates from Transifex 2011-04-18 11:26:20 -05:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Merge branch 'maint' 2011-06-07 11:43:12 -05:00
add.h Remove global handle dependencies from sync/upgrade paths 2011-06-03 13:18:36 -05:00
alpm_list.c Merge branch 'maint' 2011-06-01 12:13:49 -05:00
alpm_list.h Add new alpm_list_remove_item() function 2011-02-04 09:55:46 +10:00
alpm.c New signatures for alpm initialize and release 2011-06-07 11:37:05 -05:00
alpm.h New signatures for alpm initialize and release 2011-06-07 11:37:05 -05:00
backup.c Remove ALPM_LOG_FUNC macro 2011-06-03 11:48:24 -05:00
backup.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
base64.c Add base64 algorithms from PolarSSL to libalpm 2011-03-23 02:22:00 -05:00
base64.h Add base64 algorithms from PolarSSL to libalpm 2011-03-23 02:22:00 -05:00
be_local.c New signatures for alpm initialize and release 2011-06-07 11:37:05 -05:00
be_package.c Use standard errno codes in return from _alpm_archive_fgets 2011-06-03 14:37:51 -05:00
be_sync.c Plug a memory leak 2011-06-08 02:48:43 -05:00
conflict.c Remove global handle dependencies from sync/upgrade paths 2011-06-03 13:18:36 -05:00
conflict.h Remove global handle dependencies from sync/upgrade paths 2011-06-03 13:18:36 -05:00
db.c New signatures for alpm initialize and release 2011-06-07 11:37:05 -05:00
db.h New signatures for alpm initialize and release 2011-06-07 11:37:05 -05:00
delta.c Remove ALPM_LOG_FUNC macro 2011-06-03 11:48:24 -05:00
delta.h Include "config.h" in header files using off_t 2011-04-15 18:40:32 -05:00
deps.c Add helper methods for setting directory options 2011-06-07 11:30:44 -05:00
deps.h Ensure reported missing dependencies show correct version comparison 2011-03-25 15:43:08 -05:00
diskspace.c Remove global handle from diskspace.c 2011-06-03 12:36:13 -05:00
diskspace.h Remove global handle from diskspace.c 2011-06-03 12:36:13 -05:00
dload.c Push down extern handle variable to files that need it 2011-06-03 12:23:32 -05:00
dload.h libalpm/dload: major refactor of signature downloading 2011-04-22 17:08:33 -05:00
error.c Push down extern handle variable to files that need it 2011-06-03 12:23:32 -05:00
graph.c Fix graph free valgrind warnings 2011-06-08 02:49:03 -05:00
graph.h Include "config.h" in header files using off_t 2011-04-15 18:40:32 -05:00
group.c Remove ALPM_LOG_FUNC macro 2011-06-03 11:48:24 -05:00
group.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
handle.c New signatures for alpm initialize and release 2011-06-07 11:37:05 -05:00
handle.h New signatures for alpm initialize and release 2011-06-07 11:37:05 -05:00
log.c Push down extern handle variable to files that need it 2011-06-03 12:23:32 -05:00
log.h Remove ALPM_LOG_FUNC macro 2011-06-03 11:48:24 -05:00
Makefile.am Allow conditional compilation with GPGME 2011-04-27 16:58:58 -05: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 Remove global handle from some package and db code 2011-06-03 12:44:01 -05:00
package.h Add handle attribute to pmpkg_t struct 2011-06-03 12:13:22 -05:00
pkghash.c Remove ALPM_LOG_FUNC macro 2011-06-03 11:48:24 -05:00
pkghash.h alpm: remove public visibility of pmpkghash_t 2011-02-25 09:45:13 -06:00
remove.c Remove global handle from remove.c 2011-06-03 12:53:53 -05:00
remove.h Remove global handle from remove.c 2011-06-03 12:53:53 -05:00
signing.c Remove ALPM_LOG_FUNC macro 2011-06-03 11:48:24 -05:00
signing.h Rein in the complexity of the signature type 2011-04-24 10:48:33 -05:00
sync.c Remove global handle dependencies from sync/upgrade paths 2011-06-03 13:18:36 -05:00
sync.h Remove global handle dependencies from sync/upgrade paths 2011-06-03 13:18:36 -05:00
trans.c Remove global handle dependencies from sync/upgrade paths 2011-06-03 13:18:36 -05:00
trans.h Remove global handle from util.c 2011-06-03 12:33:18 -05:00
util.c _alpm_lstat: only duplicate string if necessary 2011-06-09 14:14:55 -05:00
util.h Remove global handle from util.c 2011-06-03 12:33:18 -05:00
version.c Style change: return(x) --> return x 2011-03-20 19:49:45 -05:00