Skip to content

v1.21.0 - Optimize local mode initialization

Compare
Choose a tag to compare
@statsig-kong statsig-kong released this 25 Apr 18:05
· 65 commits to main since this release
0aae723

Introduced 2 new options to configure the load strategy of the IP to country lookup & UA parser.

  • IPCountryOptions
    • Disabled: Fully disable IP to country lookup
    • LazyLoad: Load in background
    • EnsureLoaded: Wait until loaded when needed
  • UAParserOptions
    • Disabled: Fully disable UA parser
    • LazyLoad: Load in background
    • EnsureLoaded: Wait until loaded when needed

These are 2 of the more expensive processes during initialization of the SDK outside of network requests.

  • If your service does not rely on country based checks from an IP address, disabling IPCountry is recommended.
  • If your service does not rely on parsing the UserAgent, disabling UAParser is recommended.
  • LazyLoad is generally recommended to avoid waiting to initialize these on start up. EnsureLoaded will ensure that it's loaded when eventually needed for evaluation.

Bug fix:

  • Disable internal error logging in Local Mode

Included In This Release

  • 3b13ae3 kenny-statsig
    • skip network error handling if in local mode (#174)
  • 9cff2f5 kenny-statsig
    • optimize synchronous initialization processes (#173)

Full Changelog: v1.20.0...1.21.0