Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: **Why?** Running analysis for multiple targets quickly increases the memory usage by buck2 daemon. Because of that glean indexing [bxl script](https://www.internalfb.com/code/fbsource//fbcode/glean/facebook/lang/clang/index.bxl) ooms sandcastle machines in some cases. The common issue is very high peak memory usage with a lot of allocations which are [not released immediately](https://fb.workplace.com/groups/starlark/permalink/1312921066063385/). This change is to not create a new array in dfs traversal which creates a new copy every time using `nodes_to_visit[::stride]`. Instead, traverse same array in reverse order Reviewed By: podtserkovskiy Differential Revision: D68555015 fbshipit-source-id: f3c1ceb257638e21c0d6ba4b65b7491b665c635f
- Loading branch information