opensrp / fhircore

FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
https://opensrp.io
Apache License 2.0
58 stars 59 forks source link

Reduce memory footprint on registers and profiles #3608

Open ellykits opened 1 week ago

ellykits commented 1 week ago

Describe the feature request. Reduce the amount of memory used by the app to hold register and profile data

Additional context The application logs several Garbage Collection content each time a register/profile is launched. Reducing these logs would require fixing memory issues.

Acceptance criteria Reduced number of GC logs Expected performance gain; reducing the GC triggers

Area path A list of ordered steps in the app on usage of the feature to support anyone testing it e.g. Code reviewer, QA e.g.

  1. Login to the app
  2. Open Navigation bar
  3. Click on any register
  4. Observer quite a number of GC logs

Implementation plan (For Engineers) Refactor Register/Default repositories to: