Skip to content
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

Preserve ordering of feature flags #1718

Merged
merged 1 commit into from
Jul 7, 2022
Merged

Conversation

kstenerud
Copy link
Contributor

@kstenerud kstenerud commented Jul 7, 2022

Goal

PLAT-8682: Preserve the order of feature flags in the order they were added or modified.

Design

The NDK implementation has been changed to use a linear search, and to do simple compaction when modifying or clearing a flag.

The JVM implementation simply changes to a LinkedHashMap, and synchronizes the public APIs.

Testing

Updated the unit tests to verify the new behavior.

@bugsnagbot
Copy link
Collaborator

bugsnagbot commented Jul 7, 2022

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1879.26 1636.75
arm64_v8a 659.85 418.19
armeabi_v7a 594.32 356.75
x86 737.66 495.99
x86_64 704.9 463.23

Generated by 🚫 Danger

@kstenerud kstenerud force-pushed the PLAT-8682-feature-flag-order branch 9 times, most recently from 3b989fc to 133a724 Compare July 7, 2022 14:01
@kstenerud kstenerud marked this pull request as ready for review July 7, 2022 14:01
@kstenerud kstenerud requested a review from lemnik July 7, 2022 14:01
Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - With a minor question

@kstenerud kstenerud force-pushed the PLAT-8682-feature-flag-order branch from 133a724 to 788338f Compare July 7, 2022 14:22
@kstenerud kstenerud merged commit e0c2d41 into next Jul 7, 2022
@kstenerud kstenerud deleted the PLAT-8682-feature-flag-order branch July 7, 2022 14:54
@lemnik lemnik mentioned this pull request Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants