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

Improve large file reading in tab_upload.py #88

Closed
wants to merge 0 commits into from

Conversation

gardner
Copy link

@gardner gardner commented Sep 5, 2023

This change resolves /issues/54

The code in tab_upload.py reads uploaded files 1024 bytes at a time. This is not efficient for large files on modern systems.

UploadFile.read() maps to RawIOBase.read() which handles multiple reads to a stream internally. Documentation is available here.

This change delegates stream io to the lower levels of the runtime.

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.

[UI] Issues in uploading large files and inconsistent UI behavior
1 participant