Commit ae4e83b
perf: Speed up JSON size calculation (#3348)
Alters `getJsonSizeUnsafe` to not use `TextEncoder` as this has proven
slow on mobile. We don't need full byte length accuracy for the uses of
`getJsonSizeUnsafe` anyway, so this is an OK tradeoff for performance.
---------
Co-authored-by: Maarten Zuidhoorn <[email protected]>1 parent b8792af commit ae4e83b
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | | - | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
0 commit comments