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

Made it possible to set a memory limit #321

Merged
merged 2 commits into from
Apr 29, 2023
Merged

Made it possible to set a memory limit #321

merged 2 commits into from
Apr 29, 2023

Conversation

noborus
Copy link
Owner

@noborus noborus commented Apr 29, 2023

Seekable files behave differently than others.

If seekable:
  Unload the oldest chunk if it is greater than the limit.

If seek is not possible:
  Stop reading when reading up to the limit value,
  and when approaching the end,
  unload the first (2nd) chunk and restart reading.
Set startNUM if it is evicted from memory and cannot be returned.
Optimized default values
@noborus noborus merged commit 503f893 into master Apr 29, 2023
6 checks passed
@noborus noborus deleted the load-limit branch April 29, 2023 07:24
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.

None yet

1 participant