>>>>> Nicholas Frizzell <nfriz...@redhat.com> writes:

> Has anyone investigated making use of multithreading for check-files
> previously?

I'm not sure multithreading is all that meaningful for that script; it's
really quite simple, after all.  It runs find to get a list of files,
sorts it, and diffs that against the list of files from stdin (which
gets sorted first).

I suppose the sort of stdin could theoretically be done in parallel with
the find run, but I'm not sure I see any other simple optimizations that
could be done.  I guess if you have hundreds of thousands of files then
those sort calls could take some more significant amount of time, but my
understanding is that sort already parallelizes automatically (up to 8
CPUs).  What is actually taking up the time here?

 - J<
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to