Avoid executor re-queue in collect[All]SemiFuture
Summary: This is a performance optimization to avoid an executor re-queue for the collect[All] continuations which just move the result. The biggest problem with this now is that these futures are often on a thread pool backed with a blocking MPMCQueue which means the add can potentially deadlock. This diff is not meant as a true fix to the problem though; just an improvement. Reviewed By: yfeldblum Differential Revision: D14754908 fbshipit-source-id: e533bfa6b9d2d820d50422b612c1489b560ec9d5
Showing
Please register or sign in to comment