Skip to content

perf(core): SDK Overhead Reduction#5499

Draft
adinauer wants to merge 5 commits into
mainfrom
perf/sdk-overhead-reduction
Draft

perf(core): SDK Overhead Reduction#5499
adinauer wants to merge 5 commits into
mainfrom
perf/sdk-overhead-reduction

Conversation

@adinauer

@adinauer adinauer commented Jun 5, 2026

Copy link
Copy Markdown
Member

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor
Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Performance

- SDK Overhead Reduction ([#5499](https://github.com/getsentry/sentry-java/pull/5499))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against 81d2815

Android is never Java 9+, so the System.getProperty +
Double.valueOf parse in the Platform static initializer is
unnecessary overhead on the Android cold-start path.
Short-circuit to isJavaNinePlus=false when isAndroid is true.
@sentry

sentry Bot commented Jun 5, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.43.1 (1) release

⚙️ sentry-android Build Distribution Settings

adinauer added 3 commits June 5, 2026 09:04
Replace OptionsContainer.create(SentryAndroidOptions.class) which uses
getDeclaredConstructor().newInstance() with a direct
SentryAndroidOptionsContainer subclass that returns
new SentryAndroidOptions() without reflection.

Make OptionsContainer non-final (@OPEN) with a protected no-arg
constructor so Android can subclass it.
…latform-android-skip

perf(core): [SDK Overhead Reduction 1] Skip java.specification.version lookup on Android
…ptions-container

perf(android): [SDK Overhead Reduction 2] Replace reflective OptionsContainer with direct subclass
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.

1 participant