refactor: lazy evaluate for kalium config [WPB-23190]#4553
refactor: lazy evaluate for kalium config [WPB-23190]#4553MohamadJaara merged 8 commits intodevelopfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #4553 +/- ##
===========================================
- Coverage 48.46% 48.45% -0.01%
===========================================
Files 575 575
Lines 19825 19833 +8
Branches 3315 3315
===========================================
+ Hits 9608 9610 +2
- Misses 9202 9208 +6
Partials 1015 1015
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
| fun provideKaliumConfigs(): KaliumConfigs { | ||
| return KaliumConfigs( | ||
| fileRestrictionState = fileRestriction, | ||
| fileRestrictionState = lazy { |
There was a problem hiding this comment.
I am not sure there is any performance gain here. Does the whole refactoring of KaliumConfigs worth it?
There was a problem hiding this comment.
my goal is to lazy evaluate anything that can should be calculated, this settings have some string manipulation, and yes it is not that much but still not needed on app startup
|



https://wearezeta.atlassian.net/browse/WPB-23190
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764The PR Description
What's new in this PR?
Issues
all values in kalium config are calculated at app startup but will be needed way later of never
for example
Solutions
Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.