summaryrefslogtreecommitdiff
path: root/platform/android/net_socket_android.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-03-16 21:05:06 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-03-16 21:48:15 +0100
commit87353c90fa2a3b8128a9fa925f5083a8ac1d57a2 (patch)
treeeb09e28f0958fefc01dd95c3d118e83f6e36c896 /platform/android/net_socket_android.cpp
parent4c56fcd6cdf840b5aca05679674e24b2fea6a63c (diff)
[Net] Make debugger peer less CPU intensive.
Make sure that RemoteDebuggerPeer wait at least 100us between polls (effectively forcing a min tick of 100 microseconds). This greatly improve performances (the call to poll was useless since during low traffic, writes would always be available, and during high traffic, reads would always be available, effectively making it a busy-waiting loop). We could further improve this, by separating the two polls, and adjust the min tick based on load, but this is most likely more than enough already without sacrificing too much on high loads.
Diffstat (limited to 'platform/android/net_socket_android.cpp')
0 files changed, 0 insertions, 0 deletions