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
Using the file-like object with read(1) is better if you set up buffering eg. using socket.makefile(mode='rb', buffering=1024*1024). Avoiding frequent system calls caused by recv() the data row fetching can double the throughput (on large datasets).
The text was updated successfully, but these errors were encountered:
alippai
changed the title
Don't use recv() directly with small values
Using socket.recv() with small values is expensive
Sep 9, 2020
Using the file-like object with
read(1)
is better if you set up buffering eg. usingsocket.makefile(mode='rb', buffering=1024*1024)
. Avoiding frequent system calls caused by recv() the data row fetching can double the throughput (on large datasets).The text was updated successfully, but these errors were encountered: