Skip to content

libexpr: shrink ExprWith by 8 bytes#14453

Merged
Ericson2314 merged 1 commit into
NixOS:masterfrom
Radvendii:exprwith-alloc
Nov 4, 2025
Merged

libexpr: shrink ExprWith by 8 bytes#14453
Ericson2314 merged 1 commit into
NixOS:masterfrom
Radvendii:exprwith-alloc

Conversation

@Radvendii
Copy link
Copy Markdown
Contributor

Motivation

Shrinks ExprWith by 8 bytes

  • 4 bytes reducing size_t to uint32_t
  • 4 bytes of padding

This doesn't make an appreciable difference in overall memory use, so not sure if it's worth it. But I'll leave that up to the team.

Context


Add 👍 to pull requests you find important.

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

@Radvendii Radvendii requested a review from edolstra as a code owner November 2, 2025 22:12
@Radvendii Radvendii mentioned this pull request Nov 2, 2025
42 tasks
Comment thread src/libexpr/nixexpr.cc Outdated
Copy link
Copy Markdown
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

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

squash then merge!

Correct bound on prevWith

Co-authored-by: John Ericson <git@JohnEricson.me>
@Ericson2314 Ericson2314 added this pull request to the merge queue Nov 4, 2025
Merged via the queue into NixOS:master with commit 2b382b1 Nov 4, 2025
17 checks passed
@edolstra edolstra mentioned this pull request Dec 9, 2025
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