Its' architecture design question regarding performance.
I'm using eventbus together with MVVM architecture with my app.
The design pattern I'm considering is
1. using various methods annotated with subscrbe receiving some MainEvent
and checking if data inside is specific class. If not then do nothing.
2. using methods with different event class for each view action. Eg. setting text on particual textview
title needs ChangeTitleEvent
.
I'm struggling with thoughts that the 1st solution may be too slow after some time, so I tried to find some resources on Google comparing aproaches, but without any positive results.
Moreover I do not want to go into premature optimitzation.
jeudi 17 août 2017
Android eventbus. Triggering view by global event or different events ? Performance
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire