Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perf: CustomerInfoManager.fetchAndCacheCustomerInfoIfStale no longer fetches data if stale #2508

Merged
merged 1 commit into from
May 19, 2023

Conversation

NachoSoto
Copy link
Contributor

Just a small performance optimization. No point calling cachedCustomerInfo if isCacheStale.

…o longer fetches data if stale

Just a small performance optimization. No point calling `cachedCustomerInfo` if `isCacheStale`.
@NachoSoto NachoSoto added the perf label May 18, 2023
@NachoSoto NachoSoto requested a review from a team May 18, 2023 22:26
@NachoSoto NachoSoto changed the title Performance: CustomerInfoManager.fetchAndCacheCustomerInfoIfStale no longer fetches data if stale Perf: CustomerInfoManager.fetchAndCacheCustomerInfoIfStale no longer fetches data if stale May 18, 2023
@codecov
Copy link

codecov bot commented May 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.79%. Comparing base (3ec75b1) to head (85ffb20).
Report is 1138 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2508      +/-   ##
==========================================
- Coverage   87.80%   87.79%   -0.01%     
==========================================
  Files         197      197              
  Lines       13428    13427       -1     
==========================================
- Hits        11790    11788       -2     
- Misses       1638     1639       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@NachoSoto NachoSoto merged commit 77e0be2 into main May 19, 2023
@NachoSoto NachoSoto deleted the perf-customer-info-dont-load-if-stale branch May 19, 2023 14:14
NachoSoto added a commit that referenced this pull request May 25, 2023
This was referenced May 31, 2023
@vegaro vegaro added pr:other and removed pr:perf labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants