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

Add buffered reads for disk_file-related file access #243

Open
tehKaiN opened this issue Jan 19, 2025 · 0 comments
Open

Add buffered reads for disk_file-related file access #243

tehKaiN opened this issue Jan 19, 2025 · 0 comments

Comments

@tehKaiN
Copy link
Member

tehKaiN commented Jan 19, 2025

Related to #242

Currently, using mini-std to read small parts of files is very slow since I/O operations on files aren't buffered.

AmigaOS has buffered file I/O functions, but they are only available since KS2.0, so that's not usable here. Bebbo's stdlib buffers file access on its own by doing larger read to dedicated cache buffer, and then doing subsequent small reads from that buffer. ACE should probably have similar feature, at least when Bartman's compiler is used (so a part of mini-std perhaps).

I'm not looking towards writing this kind of code, especially managing feof flag as well as skipping intermediate buffer when doing bigger reads than its size, so I wouldn't mind if someone else adds that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

No branches or pull requests

1 participant