xbps/bin/xbps-query
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 Introduce xbps_array_foreach_cb() and use it in random code. 2013-07-27 09:47:16 +02:00
list.c Introduce xbps_array_foreach_cb() and use it in random code. 2013-07-27 09:47:16 +02:00
main.c xbps_api.h -> xbps.h 2013-06-20 12:31:02 +02:00
Makefile xbps-query: use get_maxcols() from xbps-install. 2013-06-14 09:33:27 +02:00
ownedby.c Introduce xbps_array_foreach_cb() and use it in random code. 2013-07-27 09:47:16 +02:00
search.c Introduce xbps_array_foreach_cb() and use it in random code. 2013-07-27 09:47:16 +02:00
show-deps.c xbps_api.h -> xbps.h 2013-06-20 12:31:02 +02:00
show-info-files.c xbps-query: fix regression in -R, also print repository string object. 2013-07-07 09:59:25 +02:00
xbps-query.8 xbps-query(8): -L now prints all repos, including non working repos (close #11). 2013-07-26 11:42:52 +02:00