Commit 062b849
committed
perf(router): skip paginator checks for plain JSON
Guard paginator duck typing behind the distinguishing data field so ordinary object responses serialize directly. A live CPU profile of the warm static JSON route reduced formatResult self-time from 12.7% to 0.1%; the laptop network generator was too noisy for a trustworthy throughput claim.\n\nValidated with 501 router tests, framework type checks, and pickier lint.1 parent f78f342 commit 062b849
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2904 | 2904 | | |
2905 | 2905 | | |
2906 | 2906 | | |
2907 | | - | |
| 2907 | + | |
2908 | 2908 | | |
2909 | 2909 | | |
2910 | 2910 | | |
| |||
0 commit comments