Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(bin/server): increase msg size and don't allocate msg per resp (#…
…1772) * perf(bin/server): increase msg size and don't allocate msg per resp Previously `neqo-server` would respond to a request by repeatedly sending a static 440 byte message (Major-General's Song). Instead of sending 440 bytes, increase the batch size to 4096 bytes. This also matches the `neqo-client` receive buffer size. https://github.com/mozilla/neqo/blob/76630a5ebb6c6b94de6a40cf3f439b9a846f6ab7/neqo-bin/src/bin/client/http3.rs#L165 Previously `ResponseData::repeat` would convert the provided `buf: &[u8]` to ` Vec<u8>`, i.e. re-allocate the buf. Instead keep a reference to the original buf, thus removing the allocation. * Remove unnecessary into()
- Loading branch information