Commit de091bc
Brian Vaughn
DevTools: Separate named hooks I/O and CPU code
I/O code has been moved into a file (loadSourceAndMetadata) that runs on the main/UI thread. CPU code has been moved into a file (parseSourceAndMetadata) that runs in a web worker (except for Jest tests).
This is being done to increase the likelihood of re-using cached source files when fetching from the network.1 parent 8723e77 commit de091bc
File tree
9 files changed
+973
-780
lines changed- packages
- react-devtools-extensions/src
- __tests__
- parseHookNames
9 files changed
+973
-780
lines changedLines changed: 28 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
46 | 63 | | |
47 | 64 | | |
48 | 65 | | |
| |||
880 | 897 | | |
881 | 898 | | |
882 | 899 | | |
883 | | - | |
| 900 | + | |
884 | 901 | | |
885 | 902 | | |
886 | 903 | | |
887 | 904 | | |
888 | | - | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
889 | 909 | | |
890 | | - | |
| 910 | + | |
891 | 911 | | |
892 | 912 | | |
893 | 913 | | |
894 | | - | |
| 914 | + | |
895 | 915 | | |
896 | 916 | | |
897 | 917 | | |
| |||
912 | 932 | | |
913 | 933 | | |
914 | 934 | | |
915 | | - | |
| 935 | + | |
| 936 | + | |
916 | 937 | | |
917 | 938 | | |
918 | 939 | | |
919 | 940 | | |
920 | | - | |
| 941 | + | |
921 | 942 | | |
922 | 943 | | |
Lines changed: 29 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | | - | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | | - | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments