summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-01-10 15:46:44 +1100
committerDamien George <damien.p.george@gmail.com>2019-01-10 15:46:44 +1100
commitf350b640a038477c5b00aaae7467b9485d5e9a2b (patch)
tree587e950d369e0b1840fb1c2e3d9666eb0d650de4 /py
parentefe0569c260677ac480d8958616f046b992ec6d8 (diff)
esp32/modsocket: For socket read only release GIL if socket would block.
If there are many short reads to a socket in a row (eg by readline) then releasing and acquiring the GIL each time will give very poor throughput. So first poll the socket to see if it has data, and if it does then don't release the GIL.
Diffstat (limited to 'py')
0 files changed, 0 insertions, 0 deletions