v1.21.0 - Optimize local mode initialization
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
Full Changelog: v1.20.0...1.21.0