Skip to content

Use std::unordered_map for the EvalState caches#11092

Merged
edolstra merged 2 commits intoNixOS:masterfrom
DeterminateSystems:hash-SourcePath
Jul 16, 2024
Merged

Use std::unordered_map for the EvalState caches#11092
edolstra merged 2 commits intoNixOS:masterfrom
DeterminateSystems:hash-SourcePath

Conversation

@edolstra
Copy link
Member

Motivation

This is slightly faster and does fewer allocations. Cherry-picked from #10938.

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.

@edolstra edolstra mentioned this pull request Jul 15, 2024
@edolstra edolstra merged commit 9c6678d into NixOS:master Jul 16, 2024
@edolstra edolstra deleted the hash-SourcePath branch July 16, 2024 09:06
Comment on lines +12 to +13
#include <boost/functional/hash.hpp> // for boost::hash_combine

Copy link
Member

Choose a reason for hiding this comment

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

This wasn't actually used; removing in #11113

Question though: the version in I got from boost was less capable, accepting only two arguments. Did you copy hash_combine from a newer version of boost than our dependency?

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.

3 participants