title: Play Framework 2.3.3 : WS library is slow
body: <p>I am migrating my application from Play 2.1.2 to Play 2.3.3( using Play for Java).  I am noticing that web services are slow. These are SOAP services. A basic service was taking 35ms in Play version 2.1.2, is now taking 240ms in Play 2.3.3</p>
  
  <p>Initial Code in Play 2.1.2</p>
  
  <pre><code>    WSRequestHolder requestHolder = WS.url(url);
      requestHolder.setHeader(CONTENT_TYPE, CONTENT_TYPE_XML_UTF_8_SAVE);
      F.Promise&lt;WS.Response&gt; responsePromise = requestHolder.post(new ByteArrayInputStream(request.getBytes("UTF-8")));
      response = responsePromise.get(50000L);
      return response;
  </code></pre>
  
  <p>New Code is Play 2.3.3</p>
  
  <pre><code>    WSRequestHolder requestHolder = WS.url(url);
      requestHolder.setHeader(CONTENT_TYPE, CONTENT_TYPE_XML_UTF_8_SAVE);
      F.Promise&lt;WSResponse&gt; responsePromise = requestHolder.post(new ByteArrayInputStream(request.getBytes("UTF-8")));
      response = responsePromise.get(50000L);
      Document responseDoc = null;
      if(response.getStatus() == 200) {
          responseDoc = response.asXml();
      }else{
          Logger.error("service call failed. Status: " + response.getStatus());
      }
      return responseDoc;
  </code></pre>
  
  <p>All setting are the default setting. Am I missing a setting? Does new Play require any settings related to Thread pool? I tried few combinations but did not see any improvement.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks</p>
  
  <p>Jaswinder</p>