Commit 7889d92
perf: Skip parseQuery when no QUERY parameters (W4)
validateParameters previously allocated a HashMap and ran
String.split on every request, even when the operation declared no
query parameters (the common case). Defer the parse to the first
QUERY parameter encountered; routes without query params now skip
the work entirely.
k6 throughput +3.3% (44.1k -> 45.5k rps), p95 -22 us.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3abc1ce commit 7889d92
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| |||
0 commit comments