diff options
author | 2024-02-01 17:10:23 -0800 | |
---|---|---|
committer | 2024-02-02 15:56:32 -0800 | |
commit | 984223fd04e0ae95488e207a518bd6e6de8618b6 (patch) | |
tree | 1cf78529bb4f3d5dcbd218e94c8f9129012a06ac /java/system_modules_test.go | |
parent | c0e42d5dfc265345037b980b981824bc83b9e8b0 (diff) |
Optimize mutator contexts
Mutator contexts are created for every module, and in the case of
transition mutator contexts for every dependency of every module.
Unlike the Blueprint mutator contexts that they wrap, the Soong
mutator contexts can be relatively large. Add global pools for all
of them that can avoid the repeated allocations.
Test: SOONG_PROFILE_MEM=/tmp/mem.pprof m nothing
Change-Id: I64a5f3c91292cff6352300f99c11ac50c713f96d
Diffstat (limited to 'java/system_modules_test.go')
0 files changed, 0 insertions, 0 deletions