2ada09a546
A performance improvement for bp2build as Blueprint/Soong no longer have the overhead of additional modules. The creation of these modules results in: * traversal of additional modules for each subsequent mutator * synchronization over a go channel to collect newly created modules: https://cs.android.com/android/platform/superproject/+/master:build/blueprint/context.go;l=2594,2600;drc=1602226f23181b8c3fbfcaf3358f0297e839d7d3 We avoid both of these by storing the information directly in the underlying module. Also as a fringe benefit, removes some necessary boilerplate for conversion. For benchmarks, reduces runtime ~1% for 1% converted, ~24% for 100% converted. See more: go/benchmarks-for-https:-r.android.com-1792714 Test: ran benchmarks/tests in bp2build Test: build/bazel/ci/bp2build.sh Change-Id: Ie9273b8cbab5bc6edac1728067ce184382feb211 |
||
---|---|---|
.. | ||
Android.bp | ||
android_app_certificate_conversion_test.go | ||
androidbp_to_build_templates.go | ||
apex_conversion_test.go | ||
apex_key_conversion_test.go | ||
bp2build.go | ||
build_conversion.go | ||
build_conversion_test.go | ||
bzl_conversion.go | ||
bzl_conversion_test.go | ||
cc_library_conversion_test.go | ||
cc_library_headers_conversion_test.go | ||
cc_library_static_conversion_test.go | ||
cc_object_conversion_test.go | ||
compatibility.go | ||
configurability.go | ||
constants.go | ||
conversion.go | ||
conversion_test.go | ||
metrics.go | ||
performance_test.go | ||
prebuilt_etc_conversion_test.go | ||
python_binary_conversion_test.go | ||
sh_conversion_test.go | ||
symlink_forest.go | ||
testing.go |