From 8e83469f2ed43642d7840047f058f65f31a23cc8 Mon Sep 17 00:00:00 2001 From: kenny-statsig <111380336+kenny-statsig@users.noreply.github.com> Date: Fri, 5 Apr 2024 18:04:59 -0700 Subject: [PATCH] [release] 1.20.0 - Optimizations & persistent storage updates (#172) Made optimizations to evaluation logic: - Unmarshal spec defaultValue and rule returnValue on initialization (rather than per evaluation) - Remove unnecessary string conversion for layer assignment - Replace array contains with map lookup - Replace `Sprintf` with `strconv` #### Impact - Reduces layer evaluation for layers with partial allocation by about 50% - Reduces general evaluation for dynamic configs, experiments, layers by about 15% --- - Refactored persistent storage interface to include experiment name to solve for concurrent user evaluations across SDK instances >Included In This Release >- b1716896f4db7f9bce59902aaa851b97031ae0e8 kenny-statsig > - support persisted layers (#171) >- 6f1aea8f1df1405ef9d81e53e0e571528a456453 kenny-statsig > - refactor persistent storage (#170) >- 8fcd07707ac582b96100726cbd940c7637d376aa kenny-statsig > - optimize string conversion (#169) >- 95a9fd439dc5b9aeb7f6370bd0f5033b20ab5b29 kenny-statsig > - optimize array contains to lookup (#167) >- 2eb486fdd03f844b3eb9f249b962f487584f84b1 kenny-statsig > - optimize parsing config values and layer bucketing (#166) --- statsig_metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statsig_metadata.go b/statsig_metadata.go index f63bd5f..a3bd536 100644 --- a/statsig_metadata.go +++ b/statsig_metadata.go @@ -14,7 +14,7 @@ type statsigMetadata struct { func getStatsigMetadata() statsigMetadata { return statsigMetadata{ SDKType: "go-sdk", - SDKVersion: "1.19.0", + SDKVersion: "1.20.0", LanguageVersion: runtime.Version()[2:], SessionID: SessionID(), }