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

initial draft oft hold_max with heuristic #657

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

djugei
Copy link
Contributor

@djugei djugei commented Sep 9, 2024

alternative or update to #642

In BufRead/AsyncBufRead fill_buf does not logically consume the reader/advance progress, only a call to consume does. this was the wrong way around for the AsyncBufRead implementation, i have fixed that in this pr.

On the first seek it gets enabled, displaying the progress as the max
of the last 10 updates.
If there ever are more than 5 consecutive reads and writes without seek
it gets disabled again, keeping the performance impact low.

This also fixes a pre-existing logic error in the async BufRead impl.
@djugei
Copy link
Contributor Author

djugei commented Sep 13, 2024

this is now ready for some feedback @djc

@djugei
Copy link
Contributor Author

djugei commented Oct 11, 2024

would love some feedback on this

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