Commit dfc3ece
committed
refactor[react-devtools-shared]: minor parsing improvements and modifications (#27661)
Had these stashed for some time, it includes:
- Some refactoring to remove unnecessary `FlowFixMe`s and type castings
via `any`.
- Optimized version of parsing component names. We encode string names
to utf8 and then pass it serialized from backend to frontend in a single
array of numbers. Previously we would call `slice` to get the
corresponding encoded string as a subarray and then parse each
character. New implementation skips `slice` step and just receives
`left` and `right` ranges for the string to parse.
- Early `break` instead of `continue` when Store receives unexpected
operation, like removing an element from the Store, which is not
registered yet.
DiffTrain build for commit c897260.1 parent 8a14f78 commit dfc3ece
File tree
7 files changed
+9
-9
lines changed- compiled-rn/facebook-fbsource/xplat/js
- RKJSModules/vendor
- react-test-renderer/cjs
- react/cjs
- react-native-github/Libraries/Renderer
7 files changed
+9
-9
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24901 | 24901 | | |
24902 | 24902 | | |
24903 | 24903 | | |
24904 | | - | |
| 24904 | + | |
24905 | 24905 | | |
24906 | 24906 | | |
24907 | 24907 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9039 | 9039 | | |
9040 | 9040 | | |
9041 | 9041 | | |
9042 | | - | |
| 9042 | + | |
9043 | 9043 | | |
9044 | 9044 | | |
9045 | 9045 | | |
| |||
9070 | 9070 | | |
9071 | 9071 | | |
9072 | 9072 | | |
9073 | | - | |
| 9073 | + | |
9074 | 9074 | | |
9075 | 9075 | | |
9076 | 9076 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9465 | 9465 | | |
9466 | 9466 | | |
9467 | 9467 | | |
9468 | | - | |
| 9468 | + | |
9469 | 9469 | | |
9470 | 9470 | | |
9471 | 9471 | | |
| |||
9496 | 9496 | | |
9497 | 9497 | | |
9498 | 9498 | | |
9499 | | - | |
| 9499 | + | |
9500 | 9500 | | |
9501 | 9501 | | |
9502 | 9502 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments