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

SysConf: Make use of std::string_view #9393

Merged
merged 3 commits into from Dec 30, 2020
Merged

Conversation

lioncash
Copy link
Member

Allows strings to be used in potentially non-allocating manners.

@lioncash lioncash changed the title GCPadStatus: Add basic pad testing member function SysConf: Make use of std::string_view Dec 29, 2020
Copy link
Member

@leoetlino leoetlino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, I actually missed the fact that <string_view> needs to be included

We can allow strings to be used with the SysConf interface in
potentially non-allocating manners.
Allows GetOrAddEntry() to be implemented in a manner that doesn't result
in a redundant lookup in the event an addition needs to be made.
Allows code to move into the constructor, avoiding copies entirely.
Copy link
Member

@leoetlino leoetlino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the new commits LGTM too

@leoetlino leoetlino merged commit 806a4f3 into dolphin-emu:master Dec 30, 2020
10 checks passed
@lioncash lioncash deleted the sysconf branch December 30, 2020 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants