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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

libexpr: const rvalue reference -> value for nix::Expr nodes #9029

Merged
merged 1 commit into from Sep 25, 2023

Conversation

inclyc
Copy link
Member

@inclyc inclyc commented Sep 24, 2023

Motivation

We are using const rvalue reference in the constructor. The expression

attrPath(std::move(attrPath))

will not actually move anything but COPY the attrpath. This is an absolutely unnecessary overhead.

See: https://godbolt.org/z/GrME8vfzT

Context

Priorities

Add 馃憤 to pull requests you find important.

@edolstra edolstra merged commit de99647 into NixOS:master Sep 25, 2023
8 checks passed
@inclyc inclyc deleted the users/lyc/pass-value-2 branch September 25, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants