You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For tiny files, we don't need this. In ee4931b I added an option to support direct media uploads. For this small file I ran some tests both with and without direct upload enabled, to see the response times in ms:
without
with
943.888
1027.120
2420.539
1615.611
1102.272
624.711
800.267
625.270
2845.130
668.712
869.747
689.082
753.111
691.276
4449.890
744.944
2416.990
834.301
1096.242
908.461
----------
----------
-------
1769.808
842.949
mean
1226.861
301.284
stdev
While this is a big improvement, a mean of 842ms to upload a 1081-byte file is still a bit too large and leaves room to improve.
The text was updated successfully, but these errors were encountered:
Uploading tiny files can be very slow. Here we upload a 1081-byte JSON file, with conversion to a Google Doc explicitly disabled:
It seems that by default, the Java client library uses resumable media uploads, which will upload the file using multiple requests: https://developers.google.com/api-client-library/java/google-api-java-client/media-upload#direct
For tiny files, we don't need this. In ee4931b I added an option to support direct media uploads. For this small file I ran some tests both with and without direct upload enabled, to see the response times in ms:
While this is a big improvement, a mean of 842ms to upload a 1081-byte file is still a bit too large and leaves room to improve.
The text was updated successfully, but these errors were encountered: