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

Optimization: use std::string_view in validation functions #41

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

cmnrd
Copy link
Contributor

@cmnrd cmnrd commented Feb 15, 2023

This increases performance as std::string (often) requires dynamic memory allocation. This lead to situations where strings were allocated and deleted for every invocation of validate even if validation is switched off.

all

This increases performance as std::string (often) requires dynamic memory
allocation.
@cmnrd cmnrd merged commit fdd0376 into master Feb 15, 2023
@cmnrd cmnrd deleted the string-view branch February 15, 2023 12:15
@lhstrh lhstrh added the enhancement Enhancement of existing feature label Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants