Commit 0607056
committed
perf: move mapping of initialValues to final recursive function call
The mapping of intialValues into the matrix now will only occur in the final recursive call of
makeMatrix instead of at all calls. This should help with performance, especially when a callback is
used to intialise values across ther matrix.1 parent 4097bb8 commit 0607056
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 88 | + | |
93 | 89 | | |
94 | 90 | | |
95 | 91 | | |
96 | 92 | | |
97 | 93 | | |
98 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments