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

TrialOrIntroPriceEligibilityChecker: only use SK2 implementation if enabled #1984

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

NachoSoto
Copy link
Contributor

@NachoSoto NachoSoto commented Oct 14, 2022

This is similar to #1894, but as a permanent change.

This used to always default to the SK2 implementation if it was available because it was much more reliable.
However, as we've learned (#1893), it can be significantly slow.

Until we implement caching for it (CSDK-493), this for now allows users to disable it if it's too slow.

For users that don't specify useSk2IfAvailable, SK2 is now the new default, so this class will continue to use the "better" implementation for them too.

… enabled

This used to always default to the SK2 implementation if it was available because it was much more reliable.
However, as we've learned (#1893), it can be significantly slow.

Until we implement caching for it ([CSDK-493]), this for now allows users to disable it if it's too slow.

For users that don't specify `useSk2IfAvailable`, SK2 is now the new default, so this class will continue to use the "better" implementation for them too.
@NachoSoto NachoSoto added the perf label Oct 14, 2022
@NachoSoto NachoSoto requested a review from a team October 14, 2022 20:06
@NachoSoto NachoSoto merged commit f1cbd4a into main Oct 14, 2022
@NachoSoto NachoSoto deleted the eligibility-checker-sk2 branch October 14, 2022 20:45
NachoSoto added a commit that referenced this pull request Oct 24, 2022
**This is an automatic release.**

### Other Changes
* `TrialOrIntroPriceEligibilityChecker`: only use SK2 implementation if
enabled (#1984) via NachoSoto (@NachoSoto)

Co-authored-by: RCGitBot <dev+RCGitBot@revenuecat.com>
Co-authored-by: NachoSoto <ignaciosoto90@gmail.com>
@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