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

chore(wasix): Avoid redundant hashing when spawning commands #5415

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

theduke
Copy link
Contributor

@theduke theduke commented Feb 19, 2025

When loading modules for package commands, re-use the hash from the
command to avoid redundant re-hashing, which can be quite expensive.

When loading modules for package commands, re-use the hash from the
command to avoid redundant re-hashing, which can be quite expensive.
@theduke theduke requested a review from Arshia001 February 19, 2025 18:42
Copy link

promptless bot commented Feb 19, 2025

✅ No documentation updates required.

});
}
[first] => first,
[_first, ..] => {
Copy link
Member

Choose a reason for hiding this comment

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

This time around, I'm not approving this 😄 this case can be merged with the empty slice case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Buuut it's supposed to signal a difference between "no commands" and "multiple commands, don't know which to pick".

We can extend the error with a message to reflect this (that also mentions the command names).

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