mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
8d8d5b4b8f
Summary: The previous implementation of `lazy_index` would hit max recursion depth, due to long chains of `Future`s all calling poll on each other when the `Future` representing indexing of a node is waiting for the `Future` of the parent, all the way down. This modification avoids this by: * Doing a BFS down to the desired depth, remembering all the nodes seen and returning them in topological order (oldest to newest). This is done in a `loop_fn` and so doesn't have the long chain of futures polling each other. * Synchronously indexing the list of discovered nodes. Reviewed By: StanislavGlebik Differential Revision: D9228578 fbshipit-source-id: 0f472d13ee5a0a33472700d1fea29bd7a9938011 |
||
---|---|---|
.. | ||
errors.rs | ||
genbfs.rs | ||
helpers.rs | ||
index.rs | ||
lib.rs | ||
skiplist.rs | ||
tests.rs |