Commit 6856368
Reduce the screenshots size (facebook#54800)
Summary:
# Changelog: [Internal]
From my observations, currently every base64 string for encoded screenshot takes on average ~100Kb. This is too much. These changes reduce the size to ~6Kb, at a cost of quality.
We can't accomodate such big strings, because there could be hundreds, if not thousands of frames for a ~10-20s trace.
Reviewed By: huntie
Differential Revision: D884899361 parent c800503 commit 6856368
File tree
1 file changed
+9
-5
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/inspector
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
| |||
0 commit comments