Repository navigation
Commit 30828c5
committed
fix(bench): use lazy useState initializers in octane-tsrx fixture
Pass initialTopo/initialCharts/initialUi as function references instead of
eagerly calling them, matching the React fixture's lazy form. The eager calls
evaluated on every render, creating allocation work that skewed benchmark
timings against Octane.1 parent 2c1d892 commit 30828c5
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
| 249 | + | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
0 commit comments