Juan RP
068cab8d20
libxbps: performance improvements by caching the most accessed paths.
1- We can cache the result of the first xbps_pkgdb_init() when it fails and avoid the malloc/free/access from it. 2- We cache the uname(2) result into a private var in xbps_handle and use it in xbps_pkg_arch_match(). This improves performance by ~5% approx and it's close as it was before introducing the repository index format 1.5.
See http://code.google.com/p/xbps for information. To build this you'll need: - pkg-config. - zlib (development package with static libs). - openssl (development package with static libs). - libarchive >= 2.8.0 (development package with static libs) [0]. - confuse >= 2.7 (development package with static libs) [1]. and optionally: - graphviz and doxygen (--with-api-docs) to build API documentation. - atf >= 0.15 (--with-tests) to build the Kyua test suite [2]. Just run ./configure && make && make install. By default PREFIX is set to `/usr/local', can be changed by setting --prefix. The DESTDIR variable is also supported for package managers. There are some more options that can be tweaked, see them with `./configure --help'. Good luck! [0] http://libarchive.github.com [1] http://www.nongnu.org/confuse [2] http://code.google.com/p/kyua
Description
Languages
C
77.4%
Shell
17.2%
Roff
4.4%
Makefile
1%