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

Remove useless anyhow errors from read_coef that were causing significant overhead #72

Merged
merged 1 commit into from
May 6, 2024

Conversation

mcroomp
Copy link
Collaborator

@mcroomp mcroomp commented May 2, 2024

Anyhow errors provide nice handling of errors with stack traces etc, but read_coef doesn't actually need this since it doesn't actually generate any errors except for the possible std::io::Errors from reading the input. There was about a 1% overhead caused by constructing and deconstructing these objects since read_coef is used in the inner loop.

@mcroomp mcroomp requested a review from gbrovman May 3, 2024 04:56
@mcroomp mcroomp merged commit 280bae5 into main May 6, 2024
3 checks passed
@mcroomp mcroomp deleted the removeanyhow branch May 6, 2024 18:22
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