Skip to content

Conversation

buenaflor
Copy link
Contributor

📜 Description

Performance improvement -> reduces possible UI jank as it offloads captureEnvelope from the main isolalte

💡 Motivation and Context

Closes #3166

💚 How did you test it?

Unit test, e2e test, manual test

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPii is enabled
  • I updated the docs if needed
  • All tests passing
  • No breaking changes

🔮 Next steps

Adjust AndroidReplayRecorder to use the new setup

Copy link
Contributor

github-actions bot commented Sep 4, 2025

iOS Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1247.98 ms 1250.84 ms 2.87 ms
Size 5.53 MiB 6.00 MiB 486.22 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
793f4dc 1262.50 ms 1282.35 ms 19.85 ms
7cfee3b 1260.90 ms 1273.14 ms 12.24 ms
32914d8 1275.47 ms 1285.20 ms 9.73 ms
575ebaa 1262.20 ms 1274.24 ms 12.04 ms
c8596a6 1234.11 ms 1241.19 ms 7.08 ms
de377fd 1252.28 ms 1254.76 ms 2.48 ms
b6c8720 1252.65 ms 1266.61 ms 13.96 ms
79f6b41 1269.33 ms 1279.71 ms 10.38 ms
cc4e375 1253.06 ms 1263.81 ms 10.75 ms
c26ed0a 1244.11 ms 1263.85 ms 19.75 ms

App size

Revision Plain With Sentry Diff
793f4dc 7.86 MiB 9.44 MiB 1.58 MiB
7cfee3b 20.70 MiB 22.46 MiB 1.75 MiB
32914d8 7.86 MiB 9.44 MiB 1.58 MiB
575ebaa 7.86 MiB 9.44 MiB 1.58 MiB
c8596a6 7.86 MiB 9.44 MiB 1.58 MiB
de377fd 20.71 MiB 22.43 MiB 1.73 MiB
b6c8720 7.86 MiB 9.44 MiB 1.58 MiB
79f6b41 7.86 MiB 9.44 MiB 1.58 MiB
cc4e375 7.86 MiB 9.44 MiB 1.58 MiB
c26ed0a 5.53 MiB 5.97 MiB 453.76 KiB

Previous results on branch: enh/long-lived-envelope-worker

Startup times

Revision Plain With Sentry Diff
a603960 1248.81 ms 1241.42 ms -7.40 ms
8325952 1253.63 ms 1247.92 ms -5.71 ms
03f8118 1263.06 ms 1267.69 ms 4.63 ms

App size

Revision Plain With Sentry Diff
a603960 5.53 MiB 6.00 MiB 485.69 KiB
8325952 5.53 MiB 6.00 MiB 486.78 KiB
03f8118 5.53 MiB 6.00 MiB 479.95 KiB

Copy link
Contributor

github-actions bot commented Sep 4, 2025

Android Performance metrics 🚀

  Plain With Sentry Diff
Startup time 448.31 ms 453.38 ms 5.08 ms
Size 13.93 MiB 15.06 MiB 1.13 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
e45c0e1 447.29 ms 558.33 ms 111.04 ms
8825ed8 447.65 ms 456.90 ms 9.25 ms
7cfee3b 498.78 ms 516.98 ms 18.20 ms
575ebaa 478.00 ms 585.76 ms 107.76 ms
192b44c 472.26 ms 477.34 ms 5.08 ms
eca355d 485.50 ms 569.85 ms 84.35 ms
c8596a6 474.00 ms 492.96 ms 18.96 ms
c1e775e 482.36 ms 608.98 ms 126.62 ms
0929dbf 462.82 ms 492.76 ms 29.94 ms
9b99523 456.91 ms 490.55 ms 33.64 ms

App size

Revision Plain With Sentry Diff
e45c0e1 6.54 MiB 7.70 MiB 1.16 MiB
8825ed8 13.93 MiB 14.93 MiB 1.00 MiB
7cfee3b 6.54 MiB 7.70 MiB 1.17 MiB
575ebaa 6.54 MiB 7.69 MiB 1.15 MiB
192b44c 13.93 MiB 14.93 MiB 1.00 MiB
eca355d 6.54 MiB 7.70 MiB 1.16 MiB
c8596a6 6.54 MiB 7.53 MiB 1015.27 KiB
c1e775e 6.54 MiB 7.70 MiB 1.17 MiB
0929dbf 6.54 MiB 7.70 MiB 1.17 MiB
9b99523 6.54 MiB 7.69 MiB 1.15 MiB

Previous results on branch: enh/long-lived-envelope-worker

Startup times

Revision Plain With Sentry Diff
03f8118 456.31 ms 468.04 ms 11.73 ms
a603960 429.91 ms 445.76 ms 15.84 ms
8325952 445.49 ms 451.79 ms 6.30 ms

App size

Revision Plain With Sentry Diff
03f8118 13.93 MiB 15.00 MiB 1.06 MiB
a603960 13.93 MiB 15.00 MiB 1.06 MiB
8325952 13.93 MiB 15.06 MiB 1.13 MiB

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.

Add Long-Running Envelope Worker Isolate for Android, iOS, macOS
1 participant