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

feat: remove hash_input from rendered recipe #882

Merged
merged 2 commits into from
May 28, 2024

Conversation

baszalmstra
Copy link
Contributor

@baszalmstra baszalmstra commented May 27, 2024

Fixes #867

Changes:

  • Removes hash_input from rendered recipe.
  • Renames hash.hash_prefix to hash.prefix.

Modification to the CEP: conda/ceps@0cdf2f1 (#74)

impl HashInput {
/// Create a new hash input from a variant
pub fn from_variant(variant: &BTreeMap<String, String>) -> Self {
let mut buf = Vec::new();
Copy link
Contributor

Choose a reason for hiding this comment

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

do you think it's worth to make vec with capacity of BtreeMAP keys?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I doubt that will increase performance significantly, and its also not a critical path. Id opt for simplicity instead.

@wolfv wolfv merged commit a3bb077 into prefix-dev:main May 28, 2024
14 checks passed
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.

get rid of hash_input in rendered recipe
3 participants