<div dir="ltr"><div><div><div>Hrm.<br><br><br></div>I thought I tried that, but I see my mistake now: I didnt set 'tcpNoDelay=1" on *both* ends. Looks like Noel Grandin was right after all.<br></div><br>Oh, well.. At least I learned some more details on how to read and interpret strace output in the process.<br>;)<br><br><br></div>- Maarten<br><div><br><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 10, 2015 at 3:01 PM, Jens Tröger <span dir="ltr"><<a href="mailto:jens.troeger@light-speed.de" target="_blank">jens.troeger@light-speed.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you everybody for poking this problem.  After much discussion in<br>
different places I was able to resolve this: set the TCP_NODELAY flag<br>
when setting up the connection on both sides.  By passing the following<br>
string:<br>
<br>
  uno:socket,host=localhost,port=2002,tcpNoDelay=1<br>
<br>
when creating both the Office instance and the client side, the test<br>
document ran for about 0.9 seconds (instead of 45s) at almost the speed<br>
of the named pipe.<br>
<br>
More info about this is here:<br>
<br>
  <a href="https://superuser.com/questions/860321/linux-localhost-sockets-painfully-slower-than-on-mac/862303" target="_blank">https://superuser.com/questions/860321/linux-localhost-sockets-painfully-slower-than-on-mac/862303</a><br>
<br>
Cheers,<br>
Jens<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Jens Tröger<br>
<a href="http://savage.light-speed.de/" target="_blank">http://savage.light-speed.de/</a><br>
</div></div></blockquote></div><br></div>