Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: statsig-io/java-server-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.0
Choose a base ref
...
head repository: statsig-io/java-server-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.0.1
Choose a head ref
  • 2 commits
  • 7 files changed
  • 1 contributor

Commits on Mar 24, 2025

  1. fix: dont re-create statsig metadata every time (#457)

    context: 
    StatsigMetadata contains a file read
    [here](https://github.com/statsig-io/java-server-sdk/blob/9310f14/src/main/kotlin/com/statsig/sdk/StatsigMetadata.kt#L22)
    which is only invoked on construction of a new instance
    
    Normally a single instance is constructed
    [here](https://github.com/statsig-io/java-server-sdk/blob/9310f14/src/main/kotlin/com/statsig/sdk/StatsigServer.kt#L303)
    on StatsigServerImpl instantiation, which would ensure this file read
    only happens once
    
    However, copies of the StatsigMetadata are being created
    [here](https://github.com/statsig-io/java-server-sdk/blob/9310f14/src/main/kotlin/com/statsig/sdk/StatsigLogger.kt#L122),
    [here](https://github.com/statsig-io/java-server-sdk/blob/9310f14/src/main/kotlin/com/statsig/sdk/StatsigLogger.kt#L165)
    and
    [here](https://github.com/statsig-io/java-server-sdk/blob/9310f14/src/main/kotlin/com/statsig/sdk/StatsigLogger.kt#L208)
    which seems to be re-invoking the StatsigMetadata constructor
    weihao-statsig authored Mar 24, 2025
    Configuration menu
    Copy the full SHA
    99ae2c3 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2025

  1. [release] 2.0.1 - Fix statsigMetadata Re-creation (#458)

    ### Fixes
      - Fix re-creating statsigMetadata on hotpath
    
    
    
    
    
    >Included In This Release
    >- 99ae2c3 Weihao Ding
    >   - fix: dont re-create statsig metadata every time (#457)
    weihao-statsig authored Mar 25, 2025
    Configuration menu
    Copy the full SHA
    7b49a12 View commit details
    Browse the repository at this point in the history
Loading