1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-10 21:22:20 +03:00
Commit Graph

4 Commits

Author SHA1 Message Date
Udip Pant
21a7efb2e3 remove constraints of 4-bytes minimum len for connection-id
Summary:
New QUIC draft no longer has this limitation for connection-id, and allows
connid of len 0 -> 20.

This diff removes the constraints. I still kept the requirement for
*server-chosen* conn-id

Reviewed By: mjoras, lnicco

Differential Revision: D19507366

fbshipit-source-id: 4c73f45617f40b29d47d2d86b7598f6c95588d0a
2020-01-23 21:59:49 -08:00
Subodh Iyengar
e3845d7562 Use array instead of vector for connid
Summary:
In perf traces we see that the allocations of the vector memory shows up.

The maximum connid size is 20 bytes. We previously used a vector because
we thought that it might save some space, however the default size of a vector
is actually 24 bytes.

This diff replaces the vector with an array of size Maximum connid size. This
should keep most code the same, and now will only consume 20 + 1 byte + some alignment bytes.
This should make all the vector memory allocations go away during parsing.

Reviewed By: yangchi

Differential Revision: D17806689

fbshipit-source-id: 041d5f18624fb34ce53534c75b2bdca3513fa107
2019-10-08 13:06:00 -07:00
Luca Niccolini
cf842aab47 cleanup some unused includes and using
Reviewed By: yangchi

Differential Revision: D16976466

fbshipit-source-id: c1fc2ee0795997f498ac7431542bbfbf1f0d2fb2
2019-08-24 02:03:39 -07:00
udippant
50d4939e9e Initial commit of mvfst 2019-04-22 23:42:46 -07:00