Is android ready for MVI now? (perf wise)

Hi, I really like the idea of MVI, but am concerned with performance. The issue is lists and edittexts together with State that has unrelated stuff in it. Meaning, if unrelated changes, state.list gets reemited aswell.

Do you think diffutil fixes this satisfactorly? Is if (edittext.text =! state.text) enough?

Say your use case is chat screen with list, edittext and send button. Send button needs to be disabled when edittext is empty. This means reducing State every char typed, thus reemitting the list everytime. Debouncing is not valid in this case imo

Isnt running diffutil so much wasteful? What if there is lot of transformation of list data like you would have in chat app? (Grouping of fast consecutive messages as you have in fb messenger)

So, is android view framework ready for MVI/Redux? Should global State of unrelated substates be broken into separate States which emit only when really changed?

(What if list and edittext were related, then its unavoidable :frowning: )

I would utilize LiveData to break your state into logical chunks. Alternatively, you could utilize dirty flags for different fields, and check / skip those fields if no change has been made. Note I’ve not done this in practice, just a thought.

At the end of the day, what you really need to do is measure your performance. Build the release version of your app, and see how it feels. See if it’s janky. Maybe measure frame render times using the tools in Android studio.

9Apps Cartoon HD VidMate APK

I’d love to see the result

Alice Mail Accedi

You have done good information on this article and You have written well on above topic and also thanks for sharing with us.We are the best russian massage center Abu Dhabi, UAE.

Excellent information provided thanks for all the information i must say great efforts made by you. We are one of the best Builders in Calicut,Wayanad offers world-class Villas, Flats, Apartments, and commercial properties within your budget

I was looking at some of your posts on this website and I conceive this web site is really instructive!
app development companies Riyadh
Web design companies Calicut

Thanks for sharing those informations. will help you to get more information about this.

Informative post. great ideas you have shared with us. Thanks. Looking for a Computer network maintenance company in Dubai . Al Yamin Computer is an IT Solutions company founded by enthusiastic Technocrat and is located in Sharjah, In United Arab Emirates.

Top networking companies in Dubai

Best CCTV installation company in Dubai