Skip to content

refactor(treewide): reserve vector capacity when final size is known#11847

Merged
Mic92 merged 1 commit intoNixOS:masterfrom
xokdvium:dev/some-vector-reserves
Nov 9, 2024
Merged

refactor(treewide): reserve vector capacity when final size is known#11847
Mic92 merged 1 commit intoNixOS:masterfrom
xokdvium:dev/some-vector-reserves

Conversation

@xokdvium
Copy link
Copy Markdown
Contributor

@xokdvium xokdvium commented Nov 9, 2024

Motivation

In these trivial cases the final vector size (or lower bound on the size) is known, so we can avoid some vector reallocations. This is not very important, but is just good practice and general hygiene.

Context

Priorities and Process

Add 👍 to pull requests you find important.

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

In these trivial cases the final vector size (or lower bound on the size) is known,
so we can avoid some vector reallocations. This is not very important, but is just
good practice and general hygiene.
@github-actions github-actions bot added the new-cli Relating to the "nix" command label Nov 9, 2024
@Mic92 Mic92 merged commit cdcf9bd into NixOS:master Nov 9, 2024
@xokdvium xokdvium deleted the dev/some-vector-reserves branch November 10, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants