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 read and write intervals #12

Open
controversial opened this issue Jul 20, 2016 · 0 comments
Open

Add read and write intervals #12

controversial opened this issue Jul 20, 2016 · 0 comments

Comments

@controversial
Copy link
Owner

This would improve performance by only reading from or writing to a file if a certain time interval had passed since the last write.

A File would store information about the last time it was updated. Then, when accessed, the I/O operations would only be performed if intervial milliseconds had passed since the last update. Intervals like 100 would mean the file was refreshed up to 10 times a second. This is a small loss in accuracy, but a huge performance boost in cases like list comprehensions.

When implemented, this will probably have a default value of something like 100. However, users will be able to specify their own intervals, including 0 for completely live behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant