geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r578212 - /geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpRequestEncoder.java
Date Fri, 21 Sep 2007 17:48:00 GMT
Author: jgenender
Date: Fri Sep 21 10:47:59 2007
New Revision: 578212

URL: http://svn.apache.org/viewvc?rev=578212&view=rev
Log:
Performance enhancements

Modified:
    geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpRequestEncoder.java

Modified: geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpRequestEncoder.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpRequestEncoder.java?rev=578212&r1=578211&r2=578212&view=diff
==============================================================================
--- geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpRequestEncoder.java
(original)
+++ geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpRequestEncoder.java
Fri Sep 21 10:47:59 2007
@@ -59,7 +59,7 @@
     public void encode(IoSession ioSession, Object message, ProtocolEncoderOutput out) throws
Exception {
         HttpRequestMessage msg = (HttpRequestMessage)message;
 
-        ByteBuffer buf = ByteBuffer.allocate(4096);
+        ByteBuffer buf = ByteBuffer.allocate(1024, false);
 
         // Enable auto-expand for easier encoding
         buf.setAutoExpand(true);



Mime
View raw message