Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1aa691

Browse files
committed
Increase the default media chunksize to 100MB.
The current `DEFAULT_CHUNK_SIZE` of 512kb leads to unnecessarily slow transfers, as in googlecolab/backend-container#1. Increasing this simply lowers the overhead for large transfers. Fixes googleapis#481.
1 parent d9f47bd commit d1aa691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

googleapiclient/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
LOGGER = logging.getLogger(__name__)
7676

77-
DEFAULT_CHUNK_SIZE = 512*1024
77+
DEFAULT_CHUNK_SIZE = 100*1024*1024
7878

7979
MAX_URI_LENGTH = 2048
8080

0 commit comments

Comments
 (0)