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 lambda function in for loop as it allocates a lot of memory Reviewed By: malanka, podtserkovskiy Differential Revision: D68555017 fbshipit-source-id: 6802bf0095730a056232ba80b480f1c4216e2943
- Loading branch information