mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
7fd5851f1e
Summary: `asynchronize` currently does not warn the event loop that it's running blocking code, so we can end up starving the thread pool of threads. We can't use `blocking` directly, because it won't spawn a synchronous task onto a fresh Tokio task, so your "parallel" futures end up running in series. Instead, use it inside `asynchronize` so that we can pick up extra threads in the thread pool as and when we need them due to heavy load. While in here, fix up `asynchronize` to only work on synchronous tasks and push the boxing out one layer. Filenodes needs a specific change that's worth extra eyes. Reviewed By: jsgf Differential Revision: D9631141 fbshipit-source-id: 06f79c4cb697288d3fadc96448a9173e38df425f |
||
---|---|---|
.. | ||
schemas | ||
src | ||
test | ||
Cargo.toml |