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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use std::unordered_map for the EvalState caches #11092

Merged
merged 2 commits into from
Jul 16, 2024

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
11 checks passed
@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