Commit ba941d4
JsonRpc: write frame header straight into the pooled buffer
BuildFrame stackalloc'd a header scratch then copied it into the rented
frame. Over-rent by the fixed <=30B header bound instead and write the header
directly into the frame, dropping the scratch buffer and header copy. The
single JSON copy remains (its length must precede it as Content-Length).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 396870f commit ba941d4
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
245 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
246 | 250 | | |
247 | 251 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | 252 | | |
| 253 | + | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
| |||
0 commit comments