HomePhabricator

Add optimal thread strategy

Authored by dmantipov on Sep 23 2020, 9:37 AM.

Description

Add optimal thread strategy

Add an optimal thread strategy to execute specified amount of tasks.
This strategy should prevent us from creating too many threads if we
occasionaly have an unexpectedly small amount of tasks.

Differential Revision: https://reviews.llvm.org/D87765