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

If non-mmap: use stdio reading of files instead of std::stream #2270

Merged

Conversation

hzeller
Copy link
Collaborator

@hzeller hzeller commented Oct 3, 2024

std::fstream is much slower than the good ol' standard implementation. In addition, there are no risks of throwing exceptions.

@hzeller hzeller force-pushed the feature-20241002-no-stream-read branch 8 times, most recently from ad4b4d5 to 04ea51c Compare October 3, 2024 07:43
@hzeller hzeller force-pushed the feature-20241002-no-stream-read branch from 04ea51c to 2626a70 Compare October 3, 2024 16:12
@hzeller hzeller marked this pull request as draft October 3, 2024 16:55
std::fstream is much slower than the good ol' standard implementation.
In addition, there are no risks of throwing exceptions.
@hzeller hzeller force-pushed the feature-20241002-no-stream-read branch from 2626a70 to 13e0cd0 Compare October 4, 2024 00:56
@hzeller hzeller marked this pull request as ready for review October 4, 2024 02:38
@hzeller hzeller merged commit f73c7f1 into chipsalliance:master Oct 4, 2024
34 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.

1 participant