commit | 74bc04653cd8635f19a887bd1171d2e8566166c1 | [log] [tgz] |
---|---|---|
author | Googler <tedx@google.com> | Thu Aug 17 13:39:43 2023 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Aug 17 13:40:55 2023 -0700 |
tree | 8761702e0cc1e26f109c3c87a508c8c3ad186fb1 | |
parent | 3abbf20f691877d328cbf1b455ba2002e6ac10cd [diff] [blame] |
support persistent worker for aar extractors This PR supports persistent worker for Android aar extractors, it'll significantly improve the aar extractors performance especially in the first time compilation without cache. It's not enable by default, can use flag `build --experimental_persistent_aar_extractor=true` to enable it. using worker:  not using worker:  Closes #18496. PiperOrigin-RevId: 557923249 Change-Id: Ica6b6e0a6e3f1dcb68bb9aba941d538888ca013d
diff --git a/tools/android/aar_native_libs_zip_creator.py b/tools/android/aar_native_libs_zip_creator.py index 7950df9..6f6306e 100644 --- a/tools/android/aar_native_libs_zip_creator.py +++ b/tools/android/aar_native_libs_zip_creator.py
@@ -29,6 +29,7 @@ from absl import app from absl import flags +from tools.android import json_worker_wrapper from tools.android import junction FLAGS = flags.FLAGS @@ -104,5 +105,4 @@ if __name__ == "__main__": - FLAGS(sys.argv) - app.run(main) + json_worker_wrapper.wrap_worker(FLAGS, main, app.run)