mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
33ec4db653
Summary: Bounded traversal's internal book-keeping moves the futures returned from fold and unfold callbacks around while they are being queued to be scheduled. If these futures are large, then this can result in a significant portion of bounded traversal's CPU time being spent on `memcpy`ing these futures around. This can be prevented by always boxing the futures that are returned to bounded traversal. Make this a requirement by changing the type from `impl Future<...>` to `BoxFuture<...>`. Reviewed By: mitrandir77 Differential Revision: D26997706 fbshipit-source-id: 23a3583adc23c4e7d3607a78e82fc9d1056691c3 |
||
---|---|---|
.. | ||
bench | ||
src | ||
Cargo.toml |