Skip to content

[binary size optimization] Use regex-lite#960

Draft
FranAguilera wants to merge 5 commits into
mainfrom
franjam/regex-lite-v2
Draft

[binary size optimization] Use regex-lite#960
FranAguilera wants to merge 5 commits into
mainfrom
franjam/regex-lite-v2

Conversation

@FranAguilera
Copy link
Copy Markdown
Contributor

@FranAguilera FranAguilera commented Apr 24, 2026

What

Using regex-lite for binary size reduction. See bitdriftlabs/shared-core#471

Past attempt #372

Verification

Test with release bazel hello world app. See session


  • CHANGELOG.md's "Unreleased" section has been updated, if applicable.

@FranAguilera FranAguilera marked this pull request as draft April 24, 2026 10:04
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 24, 2026

Size Comparison Report (x86_64)

Metric APK (KB) SO (KB)
Baseline 3399 1264
Current 3071 940
Difference -328 -324

APK size decreased by 328 KB. SO size decreased by 324 KB.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 24, 2026

Android Benchmark Results

Device: PR: Emulator - Android SDK built for x86_64 (API 31) | main: Emulator - Android SDK built for x86_64 (API 31)

Note: Benchmarks run on emulator. Results may vary between runs and may differ from physical devices.

Allocations

Test PR main Δ
logHttpNetworkLog50FieldsAndHeadersAndFieldProviders 923 924 -0.1%
logNotMatched5000Fields 10 10 0.0%
logNotMatchedNoFields 1 1 0.0%
trackSpansWithFields 140 140 0.0%
trackSpansWithoutFields 55 55 0.0%
webViewBridgeBridgeReady 61 60 +1.7%
webViewBridgeCustomLog 65 66 -1.5%
webViewBridgeInvalidJson 38 38 0.0%
webViewBridgeWebVitalCLS 177 177 0.0%

Timing

Test PR main Δ
logHttpNetworkLog50FieldsAndHeadersAndFieldProviders 249.27 us 236.62 us +5.3%
logNotMatched5000Fields 2.45 ms 2.45 ms 0.0%
logNotMatchedNoFields 478 ns 437 ns +9.3%
trackSpansWithFields 492.53 us 479.87 us +2.6%
trackSpansWithoutFields 8.02 us 7.77 us +3.2%
webViewBridgeBridgeReady 8.37 us 8.36 us +0.1%
webViewBridgeCustomLog 9.20 us 8.75 us +5.1%
webViewBridgeInvalidJson 141.24 us 129.73 us +8.9%
webViewBridgeWebVitalCLS 21.41 us 20.80 us +2.9%

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