mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
b06681a4da
Summary: We're using `window` to constrain resources and maintain an upper bound on the number of futures that we spawn. Ironically, for a largish number of already completed futures, this results in a recursive chain of `spawn` calls in the `window` implementation and results in a stack overflow (the kind that crashes a program, not the kind that answers programming questions). This diff removes the use of `window` and replaces it with `collect`. An earlier iteration of this diff just made all of these calls serially, blocking the main thread. This at least does things in parallel; both can torture the system for pathological walks, but at least the parallel one should complete faster. Reviewed By: simpkins Differential Revision: D4932774 fbshipit-source-id: 40d39a85029f38ff69a530070efb879a81950451 |
||
---|---|---|
.. | ||
config | ||
fuse | ||
inodes | ||
journal | ||
model | ||
rocksdb | ||
service | ||
store | ||
testharness | ||
utils |