Skip to content

libexpr: Make sure EvalState::lookupVar is inlined#15270

Merged
Ericson2314 merged 1 commit intomasterfrom
inline-lookup-var
Feb 17, 2026
Merged

libexpr: Make sure EvalState::lookupVar is inlined#15270
Ericson2314 merged 1 commit intomasterfrom
inline-lookup-var

Conversation

@xokdvium
Copy link
Contributor

Motivation

This makes sure that ExprVar::eval inlines lookupVar call. In practice this seems to reduce instruction count by ~2%, though it doesn't have a statistically significant impact on the wall time.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

This makes sure that ExprVar::eval inlines lookupVar call. In practice
this seems to reduce instruction count by ~2%, though it doesn't have
a statistically significant impact on the wall time.
@xokdvium xokdvium requested a review from edolstra as a code owner February 17, 2026 12:39
@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 17, 2026
Merged via the queue into master with commit 16b0bb7 Feb 17, 2026
18 checks passed
@Ericson2314 Ericson2314 deleted the inline-lookup-var branch February 17, 2026 16:02
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