mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-12-03 03:40:56 +03:00
elide malloc calls
Summary: - optimizing `setSupportedExtensionTransportParameters()` to elide invocations to malloc() Reviewed By: mjoras Differential Revision: D43844018 fbshipit-source-id: 38da5c62786f795a3a79e7592d06d4da1d7487ba
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3452070d5c
commit
6cd4f47735
@@ -236,12 +236,11 @@ TEST_P(
|
||||
std::vector<TransportParameter> transportParams;
|
||||
|
||||
if (GetParam().peerMaxGroupsIn > 0) {
|
||||
auto streamGroupsEnabledParam =
|
||||
std::make_unique<CustomIntegralTransportParameter>(
|
||||
static_cast<uint64_t>(TransportParameterId::stream_groups_enabled),
|
||||
GetParam().peerMaxGroupsIn);
|
||||
CHECK(setCustomTransportParameter(
|
||||
std::move(streamGroupsEnabledParam), transportParams));
|
||||
CustomIntegralTransportParameter streamGroupsEnabledParam(
|
||||
static_cast<uint64_t>(TransportParameterId::stream_groups_enabled),
|
||||
GetParam().peerMaxGroupsIn);
|
||||
CHECK(
|
||||
setCustomTransportParameter(streamGroupsEnabledParam, transportParams));
|
||||
}
|
||||
ServerTransportParameters serverTransportParams = {
|
||||
std::move(transportParams)};
|
||||
|
||||
Reference in New Issue
Block a user