Skip to content

Commit

Permalink
[release] 1.20.0 - Optimizations & persistent storage updates (#172)
Browse files Browse the repository at this point in the history
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
>- b171689 kenny-statsig
>   - support persisted layers (#171)
>- 6f1aea8 kenny-statsig
>   - refactor persistent storage (#170)
>- 8fcd077 kenny-statsig
>   - optimize string conversion  (#169)
>- 95a9fd4 kenny-statsig
>   - optimize array contains to lookup (#167)
>- 2eb486f kenny-statsig
>   - optimize parsing config values and layer bucketing (#166)
  • Loading branch information
kenny-statsig authored Apr 6, 2024
1 parent b171689 commit 8e83469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statsig_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
Expand Down

0 comments on commit 8e83469

Please sign in to comment.