Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce string copying. #135

Merged
merged 3 commits into from
Nov 29, 2021
Merged

Reduce string copying. #135

merged 3 commits into from
Nov 29, 2021

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