]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: rework threading model for file/archive scanning
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 1 Jan 2020 01:06:30 +0000 (20:06 -0500)
committerFrank Ch. Eigler <fche@redhat.com>
Sat, 11 Jan 2020 14:47:02 +0000 (09:47 -0500)
commit32ed4e6f8e827949d9c2a16c5fbc0aa75a6a4da9
tree4bb964d1e4d601e3a00eeaf49158dc4eb0617c86
parentb8d85ed024a745cff05e56c6337d95d654d5294a
debuginfod: rework threading model for file/archive scanning

We switch from a thread per supplied PATH, with a semaphore based
concurrency control, to a fixed number of worker threads collecting
the result of a plain directory traversal being put into a work queue.
This allows maximal continuous concurrency, even if the PATH
directories are dramatically differently sized.  There is no more need
to use concurrency-motivated subdirectory wildcards for PATH entries:
just a single top level directory will work fast.  doc & tests incl.
debuginfod/ChangeLog
debuginfod/debuginfod.cxx
doc/ChangeLog
doc/debuginfod.8
tests/ChangeLog
tests/run-debuginfod-find.sh