Area: Performance
Priority: Medium
Estimated Time: 2 hours
Description:
EthosProtocolApplication.kt's Hilt AppModule likely eagerly initializes all singletons
(API client, offline cache, notification helper, integrity checker) at process start regardless of
whether the first screen the user sees needs all of them immediately, which can measurably affect
cold-start time.
Tasks:
- Profile current cold-start time and identify which DI-provided singletons are on the critical path
for first-frame render
- Defer/lazily initialize non-critical singletons (e.g.,
IntegrityChecker, widget update scheduling)
until after first frame
- Add a startup-time benchmark (ties into
#321) to measure the improvement and guard against regression
Area: Performance
Priority: Medium
Estimated Time: 2 hours
Description:
EthosProtocolApplication.kt's HiltAppModulelikely eagerly initializes all singletons(API client, offline cache, notification helper, integrity checker) at process start regardless of
whether the first screen the user sees needs all of them immediately, which can measurably affect
cold-start time.
Tasks:
for first-frame render
IntegrityChecker, widget update scheduling)until after first frame
#321) to measure the improvement and guard against regression