Skip to content

Conversation

@marcomagdy
Copy link
Contributor

Optimized a few unnecessary string copies that should have been moves to
begin with. Additionally, I noticed that we're scanning the headers
twice once to test if a given header exists and another to get its
value, that is a perfect use case for std::optional, but since we need
to stay compatible with C++11 and C++14, we can use the 'outcome' class
instead.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Marco Magdy and others added 3 commits November 24, 2021 11:36
Optimized a few unnecessary string copies that should have been moves to
begin with. Additionally, I noticed that we're scanning the headers
twice once to test if a given header exists and another to get its
value, that is a perfect use case for std::optional, but since we need
to stay compatible with C++11 and C++14, we can use the 'outcome' class
instead.
@marcomagdy marcomagdy marked this pull request as ready for review November 29, 2021 21:37
@marcomagdy
Copy link
Contributor Author

@bmoffatt PTAL

@bmoffatt bmoffatt merged commit 4aa6639 into awslabs:master Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants