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

Use viewBindingIgnore="true" when we do not need the ViewBinding. #4652

Merged
merged 2 commits into from
Dec 13, 2021

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Dec 7, 2021

We are using Epoxy and do not need the view binding for the vast majority of list item layouts. Disable their generation and compilation and finally Proguard shrink to have a faster compilation. Let's see if the gain worth it on the CI.

See https://developer.android.com/topic/libraries/view-binding for more details

@github-actions
Copy link

github-actions bot commented Dec 7, 2021

Unit Test Results

  66 files  ±0    66 suites  ±0   50s ⏱️ -2s
135 tests ±0  135 ✔️ ±0  0 💤 ±0  0 ±0 
418 runs  ±0  418 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit ba81216. ± Comparison against base commit 34898f1.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@ouchadam ouchadam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compiled and works locally fine for me 💯

*clean assembleGplayDebug --no-build-cache

BEFORE AFTER
mean 165,750.20 ms 164,045.18 ms
min 164,316.65 ms 162,968.08 ms
p25 165,173.92 ms 163,359.73 ms
median 166,031.20 ms 163,751.38 ms

very minor gains to build time~ in comparison to the total time, but... with more modules and parallelisation this could help even more

@bmarty
Copy link
Member Author

bmarty commented Dec 13, 2021

I am now wondering if we could use ViewBinding in our VectorEpoxyHolder, or change the bit our arch to be able to do so.

@ouchadam
Copy link
Contributor

I am now wondering if we could use ViewBinding in our VectorEpoxyHolder, or change the bit our arch to be able to do so.

depends if we want to start putting our eggs in the compose basket 🤔

@bmarty
Copy link
Member Author

bmarty commented Dec 13, 2021

Ok, thanks for the measures 💯

@bmarty bmarty merged commit 5ea7f3c into develop Dec 13, 2021
@bmarty bmarty deleted the feature/bma/avoid_useless_codegen branch December 13, 2021 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants