Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Jul 2019
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)

    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 state.foo 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)https://solitaire.onl/ 9apps.ooo/ https://bluestacks.vip/




    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 )
    Last edited by jwalamukhi; 2019-07-11 at 06:27 PM.

  2. #2
    Newbie
    Join Date
    Aug 2019
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    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
    Last edited by lovelash; 2019-08-07 at 08:17 PM.

  3. #3
    Vag
    Vag is offline
    Newbie
    Join Date
    Aug 2019
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Quote Originally Posted by lovelash View Post
    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.
    9Apps Cartoon HD VidMate APK
    I'd love to see the result

  4. #4
    Member
    Join Date
    Dec 2017
    Posts
    32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    I use case is chat screen with list, edittext and send button. Send button needs to be disabled when edittext is empty. One example is download video facebook without app. This means reducing State every char typed, thus reemitting the list everytime. Debouncing is not valid in this case imo

  5. #5
    Newbie
    Join Date
    Sep 2019
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)

    Alice Mail Accedi


Similar Threads

  1. Why A Customized Android App Is Better Than A Ready-Made Solution
    By Steffan Max in forum Marketing Methods
    Replies: 0
    Last Post: 2016-10-10, 06:26 PM
  2. MoWeather 1.1 for Android is ready!!!
    By kenny woo in forum Android Apps
    Replies: 0
    Last Post: 2014-03-14, 08:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •