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

enhancement: Generate OptimizelyConfig object on API Call instead of SDK initialization #296

Merged
merged 2 commits into from
Jan 28, 2022

Conversation

zashraf1985
Copy link
Contributor

@zashraf1985 zashraf1985 commented Jan 27, 2022

Summary

OptimizelyConfig object is generated when SDK is being initialized. This operation is heavy and blocks the SDK from initializing quickly. This object is only used when users explicitly access it using get_optimizely_config API call. This PR moves the creation of this object from SDK initialization to the actual API call.

Test plan

  • Manually tested thoroughly
  • All unit tests pass
  • All FSC tests pass

Issues

fixes #295

@coveralls
Copy link

coveralls commented Jan 27, 2022

Coverage Status

Coverage increased (+0.0004%) to 99.454% when pulling 7706e12 on zeeshan/optimizely_config_lazy_initialization into 8683bea on master.

@zashraf1985 zashraf1985 removed their assignment Jan 27, 2022
Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zashraf1985 zashraf1985 merged commit 2178ca6 into master Jan 28, 2022
@zashraf1985 zashraf1985 deleted the zeeshan/optimizely_config_lazy_initialization branch January 28, 2022 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slowness after upgrading to 3.9
4 participants