Closed ekigamba closed 6 years ago
Pages investigated so far:
Other pages that use similar structures and would benefit:
Views:
Issues found:
Location of expensive Regex & replaceAll operations (opensrp-immunization module):
Probable fixes:
NB:
Which views on the app do these apply to. Just the details page? Would be good to know what parts of the app the above affect. On Mon, Oct 23, 2017 at 7:40 AM ekigamba notifications@github.com wrote:
Issues found:
- ListView or related widgets do not reuse views
- Regex operations & String.replaceAll operations using 21% exclusive CPU time
- NestedScrollableView makes list view redundant
Probable fixes:
- Use of recyclerviews and/or Expandable list view which provides ability of reusing views in nested ListView - It is recommended to do away with the NestedListView
- Use faster libraries for Regex & String operations - Guava, Apache Commons Lang & Custom Java Algorithms. These libraries are faster for some operations and not all in comparison to standard java API provided for the same.
- Reduce for loops & Db updates/RowGroup updates performed for each vaccine rendered
NB: ExpandableListView might be a bit laggy when all groups are expanded even those not visible on the list
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OpenSRP/opensrp-client-path/issues/130#issuecomment-338631980, or mute the thread https://github.com/notifications/unsubscribe-auth/AADiQahwi_U9tXypqZFjCOARVh2RsTdWks5svHtFgaJpZM4P6ZZ1 .
Cool, will add that
This is done, closing.
Responsive but slow child details page