summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorPeter Harris <pharris@opentext.com>2020-04-21 15:19:22 -0400
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-09 16:52:43 +0000
commit2ab70dede76c99876d7d5d1efa521b8082e13210 (patch)
tree585751b85663dd0c218339ff8735de720bd15752 /.gitlab-ci
parentf5b4b79dcf6323731cae765e06c6b58fea0ce747 (diff)
os: Restore buffer when writing to network
The commit 9bf46610a9d20962854016032de4567974e87957 "os: Immediately queue initial WriteToClient" effectively disables buffering (of all writes, not just the "initial" write), since the OS's network buffers will usually be large enough to hold whatever replies we have sent. This does improve performance when drawing over a Unix socket (I measure approximtely 10%, not the ~5x mentioned in that commit message, probably due to the large changes in this area since that commit), but it decreases performance when drawing over a network due to the additional TCP packets. This decrease is small (~10%) in most cases, but if the two machines have mismatched Nagle / tcp_delay settings it can cause XGetWindowAttributes to take 200ms (because it's composed of two requests, the 2nd of which might wait for the ack which is delayed). Avoid network slowdowns by making the immediate flush conditional on who->local. Signed-off-by: Peter Harris <pharris@opentext.com>
Diffstat (limited to '.gitlab-ci')
0 files changed, 0 insertions, 0 deletions