Re: [PATCH v3 7/8] Demangle minsyms in parallel

Tom Tromey
2019-05-30T22:22:03Z

>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> "16 cores ought to be enough for anybody", right? :-)

As long as it is more than what's on my personal desktop :)

Pedro> Just kidding. Longer term I could see this evolving into
Pedro> pulling threads out of a worker thread pool shared by all
Pedro> kinds of parallel_for_each calls in the tree, but I'm super
Pedro> fine with the simple initial design.

The thread pool approach is nice because it means there isn't thread
startup overhead -- just whatever overhead there is from pushing jobs
onto a queue.

On the down side, a thread pool is somewhat more complicated.

Still, if we want it eventually, maybe we should just start with it.
One possible bad part is that if we don't have std::thread then I wonder
if the other things like futures will be available.

Tom