Skip to content

Commit

Permalink
perf: increase some buffer sizes for faster ingest/file send
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed May 22, 2024
1 parent 10dcd5e commit 182999e
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 182999e

Please sign in to comment.