Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement worker support for GenerateDataBindingBaseClasses #16067

Conversation

arunkumar9t2
Copy link
Contributor

@arunkumar9t2 arunkumar9t2 commented Aug 8, 2022

  • Moved GenerateDataBindingBaseClasses to ResourceProcessorBusyBox since Android databinding classes were already a dependency there.
  • ProcessDatabinding is already part of ResourceProcessorBusyBox but it was not enabled in persistent_android_resource_processor expansion flag. Added that as well.

This change is multiplex compatible and probably could use expansion flags as done here #15950.

Results:
In a synthetic generated project with 30 modules here https://github.com/arunkumar9t2/bazel-playground, the worker can be turned off/on with .bazel.sh build //android/databinding_workers:android_data_binding --strategy=GenerateDataBindingBaseClasses=[sandboxed|worker] and worker is about 9 to 10% faster.

@arunkumar9t2 arunkumar9t2 force-pushed the worker-support-for-gen-base-classes branch from c0edd1c to fcd08b5 Compare August 8, 2022 05:53
@sgowroji sgowroji added team-Android Issues for Android team awaiting-review PR is awaiting review from an assigned reviewer labels Aug 8, 2022
@nkoroste
Copy link
Contributor

nkoroste commented May 8, 2023

We probably want this to be ported over to rules_android on the pre_alpha branch

1 similar comment
@nkoroste
Copy link
Contributor

nkoroste commented May 8, 2023

We probably want this to be ported over to rules_android on the pre_alpha branch

@ahumesky
Copy link
Contributor

ahumesky commented Aug 14, 2023

We probably want this to be ported over to rules_android on the pre_alpha branch

This is the corresponding code in the starlark rules:
https://github.com/bazelbuild/rules_android/blob/69a3fd5ea29d0283c948222ae95546a2437a04cf/rules/data_binding.bzl#L57-L97

But we can still merge this for Bazel 7.0

@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Aug 17, 2023
@arunkumar9t2
Copy link
Contributor Author

Thanks @ahumesky @nkoroste I will port this to rules_android as well

@arunkumar9t2 arunkumar9t2 deleted the worker-support-for-gen-base-classes branch August 18, 2023 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Android Issues for Android team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants