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

fix: use a temporary file for file uploads #2929

Merged
merged 2 commits into from
Aug 26, 2022
Merged

Conversation

sauyon
Copy link
Contributor

@sauyon sauyon commented Aug 22, 2022

This should alleviate some of the performance issues observed due to the current implementation of formparser: using a Python list for large data (greater than megabytes) appears to have a severely detrimental (effects measured in minutes) effect on performance.

@sauyon sauyon requested a review from bojiang August 22, 2022 15:33
@sauyon sauyon requested a review from a team as a code owner August 22, 2022 15:33
@sauyon sauyon requested review from larme and removed request for a team August 22, 2022 15:33
This should alleviate some of the performance issues
observed due to the current implementation of formparser:
using a Python list for large data (greater than megabytes)
appears to have a severely detrimental (effects measured in
minutes) effect on performance.
@codecov
Copy link

codecov bot commented Aug 22, 2022

Codecov Report

Merging #2929 (aaf4eb2) into main (56cf5b7) will decrease coverage by 0.16%.
The diff coverage is 11.76%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2929      +/-   ##
==========================================
- Coverage   70.79%   70.62%   -0.17%     
==========================================
  Files         104      104              
  Lines        9470     9496      +26     
==========================================
+ Hits         6704     6707       +3     
- Misses       2766     2789      +23     
Impacted Files Coverage Δ
bentoml/_internal/utils/formparser.py 18.71% <11.76%> (-1.29%) ⬇️

@ssheng ssheng added this to the 1.0.4 milestone Aug 25, 2022
@ssheng ssheng merged commit 8c95f26 into bentoml:main Aug 26, 2022
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

2 participants