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
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