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

PciPath to Bdf conversion is infallible; prove it and refactor #774

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

iximeow
Copy link
Member

@iximeow iximeow commented Oct 1, 2024

i initially tried to find TryInto cases by deleting the impl and seeing what broke, but clippy is much better at this than me. cargo xtask clippy, in fact, is something i forgot i can or should run.

@iximeow iximeow force-pushed the ixi/infallible-pcipath-to-bdf branch from e14253e to 9c64888 Compare October 1, 2024 01:56
Copy link
Contributor

@gjcolombo gjcolombo left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Collaborator

@pfmooney pfmooney left a comment

Choose a reason for hiding this comment

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

Out of curiosity, how long does that test run on a modern CPU?

@iximeow
Copy link
Member Author

iximeow commented Oct 1, 2024

i'd mostly just noticed it didn't "feel slow", but on second look it's 1.87s on a 7950x. so maybe it's more "not slow if you've just also been waiting to rebuild propolis"..

@pfmooney
Copy link
Collaborator

pfmooney commented Oct 1, 2024

i'd mostly just noticed it didn't "feel slow", but on second look it's 1.87s on a 7950x. so maybe it's more "not slow if you've just also been waiting to rebuild propolis"..

Seems reasonable enough. If it becomes a problem in the future, we could rub some quickcheck (or similar) on it.

@iximeow iximeow merged commit 5a71bed into master Oct 1, 2024
11 checks passed
@iximeow iximeow deleted the ixi/infallible-pcipath-to-bdf branch October 1, 2024 20:13
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