This PR has a number of smaller perf improvements. In my measuring they account for about a 3% perf improvement with tiny string payloads. The perf improvement should be much larger for larger invocation payloads.
Modifications:
Replaced HTTPHandler with NIOHTTPClientResponseAggregator, to fix a CoW issue. This will have by far the biggest speed impact. Especially for large payloads.
This PR has a number of smaller perf improvements. In my measuring they account for about a 3% perf improvement with tiny string payloads. The perf improvement should be much larger for larger invocation payloads.
Modifications:
HTTPHandler
withNIOHTTPClientResponseAggregator
, to fix a CoW issue. This will have by far the biggest speed impact. Especially for large payloads.EventLoop
in tests.syncOperations
to setup theHTTPClient
.Result:
Faster Swift Lambda Runtime.