Commit 4b7e32a
perf: Add Request.current() escape hatch (W7)
Each Request.bytes()/parsed()/operationId()/pathParams() call walks
the JDK scope chain independently. Document and expose Request.current()
so handlers that read more than one field can hoist the lookup.
Pure addition — no hot-path callers in the library or example code, so
no measured throughput delta on the k6 baseline.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent eb6c331 commit 4b7e32a
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
| |||
0 commit comments