Commit fdc10c4
authored
chore: use readRetainedSlice to avoid copy in SpdyFrameDecoder (#14573)
Motivation:
We can use readRetainedSlice to reduce the copy of bytes in
`SpdyFrameDecoder`.
Modification:
Make use of `readRetainedSlice` instead of new a byteBuf and copy data
to it.
Result:
Less copy1 parent 46b11cc commit fdc10c4
1 file changed
Lines changed: 3 additions & 6 deletions
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
| 164 | + | |
166 | 165 | | |
167 | 166 | | |
168 | 167 | | |
| |||
361 | 360 | | |
362 | 361 | | |
363 | 362 | | |
364 | | - | |
365 | | - | |
| 363 | + | |
366 | 364 | | |
367 | 365 | | |
368 | 366 | | |
| |||
445 | 443 | | |
446 | 444 | | |
447 | 445 | | |
448 | | - | |
449 | | - | |
| 446 | + | |
450 | 447 | | |
451 | 448 | | |
452 | 449 | | |
| |||
0 commit comments