Skip to content

Commit

Permalink
Merge pull request #116 from bento-platform/perf/increase-buffer-sizes
Browse files Browse the repository at this point in the history
perf: increase some buffer sizes for faster ingest/file send
  • Loading branch information
davidlougheed authored May 22, 2024
2 parents 10dcd5e + 182999e commit d43efeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chord_drs/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__all__ = ["DrsRequest"]

MAX_IN_MEMORY_SIZE = 1024 * 1024 # 1 MB
MAX_IN_MEMORY_SIZE = 1024 * 1024 * 10 # 10 MB


class DrsRequest(Request):
Expand Down
2 changes: 1 addition & 1 deletion chord_drs/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

RE_STARTING_SLASH = re.compile(r"^/")
MIME_OCTET_STREAM = "application/octet-stream"
CHUNK_SIZE = 1024 * 16 # Read 16 KB at a time
CHUNK_SIZE = 1024 * 128 # Read 128 KB at a time

drs_service = Blueprint("drs_service", __name__)

Expand Down

0 comments on commit d43efeb

Please sign in to comment.