xbps/bin/xbps-rindex
Juan RP 0c7701f2bc Introduce xbps_array_foreach_cb() and use it in random code.
This routine will spawn a thread per core to process N items stored
in the specified array, the last thread gets the remainder of items left.

Results have shown that xbps benefits if there is a considerable amount
of items and number of threads being spawned.

Use it in xbps_pkgdb_foreach_cb(), xbps-pkgdb(8), xbps-query(8)
and xbps-rindex(8).

On UP systems there's no overhead because pthread(3) is not used at all.

WIP! investigate if it can be used in libxbps (xbps_rpool_foreach()),
and finish conversion of xbps-rindex(8) -c.
2013-07-27 09:47:16 +02:00
..
defs.h xbps_api.h -> xbps.h 2013-06-20 12:31:02 +02:00
index-add.c xbps_api.h -> xbps.h 2013-06-20 12:31:02 +02:00
index-clean.c xbps_api.h -> xbps.h 2013-06-20 12:31:02 +02:00
main.c xbps-rindex: added -f --force flag to forcefully register a pkg with -a --add. 2013-05-02 10:46:30 +02:00
Makefile Use a single file to store repository data. 2013-06-10 10:28:39 +02:00
remove-obsoletes.c Introduce xbps_array_foreach_cb() and use it in random code. 2013-07-27 09:47:16 +02:00
repoflush.c Revert "xbps-rindex: [add] add index-files.plist the first in the repo archive." 2013-07-04 11:05:42 +02:00
xbps-rindex.8 xbps-rindex: added -f --force flag to forcefully register a pkg with -a --add. 2013-05-02 10:46:30 +02:00