swift-server / swift-aws-lambda-runtime

Swift implementation of AWS Lambda Runtime
Apache License 2.0
1.14k stars 104 forks source link

Add ControlPlaneResponseDecoder #245

Closed fabianfett closed 8 months ago

fabianfett commented 2 years ago

Add ControlPlaneResponseDecoder to decode incoming HTTP responses.

Motivation:

We want to save allocations wherever possible. A big driver of allocations is the NIOHTTP1 HTTPResponseDecoder. The reason for this is: It can not be optimized for the lambda use case and allocates header string values that are not needed.

Modifications:

Result:

Faster control plane response decoding.

tomerd commented 8 months ago

closing in inactive PRs, feel free to re-open if still relevant