Closed lemnik closed 4 months ago
Format | Size impact of Bugsnag (kB) | Size impact of Bugsnag when Minified (kB) |
---|---|---|
APK | 1844.24 | 1668.28 |
arm64_v8a | 626.95 | 450.82 |
armeabi_v7a | 561.42 | 385.29 |
x86 | 704.75 | 524.53 |
x86_64 | 671.99 | 495.86 |
Generated by :no_entry_sign: Danger
Goal
Small reduction in overhead when leaving breadcrumbs: use integers to represent the
BreadcrumbType
instead of strings.Design
While the string values for
BreadcrumbType
on the Java/Kotlin code were constants, they required a call toGetStringUTFChars
andstrcmp
to evaluate which enum value to use.The new implementation uses an exhaustive
when
which means:enum
values (asordinal
would be)enum
values will cause compiler failuresTesting
Relied on existing tests.