Commit eb6c331
perf: Precompute Parameter JSON-pointer at parse time (W5)
The validation pointer "/<in>/<name>" was rebuilt with StringBuilder
on every request per parameter, even though it's spec-static. Promote
it to a record component computed once in the convenience constructor
and read it in RequestPreparationFilter.validateParameters.
k6 throughput +4.6% vs baseline (44.2k -> 46.2k rps), p95 -83 us.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7889d92 commit eb6c331
2 files changed
Lines changed: 8 additions & 2 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
5 | | - | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
0 commit comments