-
Notifications
You must be signed in to change notification settings - Fork 624
Changing Fireperf's SDK Floats to Doubles #4874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…and our SDK loses precision when converting back to Float. This causes sampling rates to not behave as expected.
📝 PRs merging into main branchOur main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released. |
Coverage Report 1Affected Products
Test Logs |
Size Report 1Affected Products
Test Logs |
Startup Time Report 1Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS. Notes
Startup Times
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me.
There is one scenario I'm curious about for testing - Is there a test we can write for one flag that is already cached as Float and how with this new code change we are backward compatible?
firebase-perf/src/main/java/com/google/firebase/perf/config/DeviceCacheManager.java
Outdated
Show resolved
Hide resolved
firebase-perf/src/main/java/com/google/firebase/perf/config/DeviceCacheManager.java
Outdated
Show resolved
Hide resolved
firebase-perf/src/main/java/com/google/firebase/perf/util/ImmutableBundle.java
Show resolved
Hide resolved
…fore storing it in the SharedPreferences.
RC Flags are stored as Double and our SDK loses precision when converting back to Float. This causes sampling rates to not behave as expected.