Closed crinklywrappr closed 11 months ago
To increase performance of evalFeature.
evalFeature
Profiling our application revealed that growthbook spent a lot of time in the URL constructor when evalFeature was called.
In our application, we set featuresJson on the GBContext builder and leave the URL unset.
featuresJson
Repeated calls to evalFeature results in a noticeable amount of time spent in the URL constructor @ GrowthBookUtils/getQueryStringOverride.
GrowthBookUtils/getQueryStringOverride
Growthbook should check if urlString is null or empty before entering the try/catch block in GrowthBookUtils/getQueryStringOverride.
urlString
Goal
To increase performance of
evalFeature
.Summary
Profiling our application revealed that growthbook spent a lot of time in the URL constructor when
evalFeature
was called.Steps to reproduce
In our application, we set
featuresJson
on the GBContext builder and leave the URL unset.Repeated calls to
evalFeature
results in a noticeable amount of time spent in the URL constructor @GrowthBookUtils/getQueryStringOverride
.Resolution
Growthbook should check if
urlString
is null or empty before entering the try/catch block inGrowthBookUtils/getQueryStringOverride
.