Commit c3ea867
authored
perf: remove workspace dependancy from iris-grid-panel and memoize settings redux selector (#1982)
Discovered as part of #1977 investigation. Typing in a notebook triggers
a workspace update, which was triggering all tables to re-render.
Removed deprecated dependeny of workspace from iris-grid.
Further settings is derived from workspace and returns a new settings
object. Iris-grid depends on settings, but the object had no changes.
Memoize the selector so it always returns the same object if settings
haven't changed.
Removes ~100ms of lag that was occuring 400ms after the debounce of
notebook key press events.
BREAKING CHANGE: getPluginContent deprecatedProps have been removed from
iris-grid1 parent dc29aa9 commit c3ea867
4 files changed
Lines changed: 50 additions & 45 deletions
File tree
- packages
- dashboard-core-plugins/src/panels
- redux
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | 56 | | |
59 | 57 | | |
60 | | - | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
| |||
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 67 | + | |
74 | 68 | | |
75 | 69 | | |
76 | 70 | | |
| |||
101 | 95 | | |
102 | 96 | | |
103 | 97 | | |
104 | | - | |
105 | | - | |
106 | 98 | | |
107 | 99 | | |
108 | 100 | | |
| |||
157 | 149 | | |
158 | 150 | | |
159 | 151 | | |
160 | | - | |
161 | 152 | | |
162 | 153 | | |
163 | 154 | | |
| |||
420 | 411 | | |
421 | 412 | | |
422 | 413 | | |
423 | | - | |
424 | | - | |
425 | 414 | | |
426 | 415 | | |
427 | 416 | | |
| |||
433 | 422 | | |
434 | 423 | | |
435 | 424 | | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | 425 | | |
450 | 426 | | |
451 | 427 | | |
| |||
456 | 432 | | |
457 | 433 | | |
458 | 434 | | |
459 | | - | |
460 | | - | |
461 | 435 | | |
462 | 436 | | |
463 | 437 | | |
| |||
1217 | 1191 | | |
1218 | 1192 | | |
1219 | 1193 | | |
1220 | | - | |
1221 | 1194 | | |
1222 | 1195 | | |
1223 | 1196 | | |
| |||
1266 | 1239 | | |
1267 | 1240 | | |
1268 | 1241 | | |
1269 | | - | |
1270 | | - | |
| 1242 | + | |
1271 | 1243 | | |
1272 | 1244 | | |
1273 | 1245 | | |
| |||
1373 | 1345 | | |
1374 | 1346 | | |
1375 | 1347 | | |
1376 | | - | |
1377 | 1348 | | |
1378 | 1349 | | |
1379 | 1350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
| 74 | + | |
71 | 75 | | |
72 | | - | |
73 | | - | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
0 commit comments