title: FastRWeb performance on Ubuntu with built-in web server
body: <p>I have installed FastRWeb 1.1-0 on an installation of R 2.15.2 (Trick or Treat) running on an Ubuntu 10.04 box.  I hope to use the resulting system to run a web service.</p>
  
  <p>I've configured the system by setting http.port to 8181 in rserve.conf and unsetting the socket destination.  I've assigned .http.request to FastRWeb::.http.request.  I exchange JSON blobs between the client and the server using HTTP POST (the second blob can exceed 150KB in size, and will not fit in an HTTP GET query string.)</p>
  
  <p>Everything works end to end -- I have a little client-side R script which generates JSON RPC calls across the channel.  I see the run function invoked, and see it returned.</p>
  
  <p>I've run into a significant performance problem, however: the return path takes in excess of 12 seconds from the time run() returns (including the call to done()) and the time that the R client gets the return value.  RCurl doesn't seem to be the culprit; it appears that something is taking twelve seconds to do a return.</p>
  
  <p>Does anybody have any suggestions of where to look?  I can easily shift over to using Apache 2.0 and CGI, but, honestly, I'd rather keep everything R centric.</p>