Commit 4b9bbbd
committed
Shallow compare schema and uischema props
Use shallow compare to determine schema and uischema prop changes improving performance in almost all cases. The 'areEqual' check is used to determine whether the previous set of props is equal to the next set of props. Up until now lodash's deep equal was used for the schema and uischema props. This would only be beneficial if we changed the actual schema objects without changing their content and the comparison would take less time than a rerender. In practice we almost never change the schema and uischema objects and when we do we usually also change their content. A deep equal is therefore unnecessary and additionally harms performance for large objects.1 parent 957c5d6 commit 4b9bbbd
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
| 362 | + | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
368 | 370 | | |
369 | 371 | | |
370 | 372 | | |
| |||
0 commit comments