subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r1712223 - /subversion/trunk/subversion/mod_dav_svn/util.c
Date Tue, 03 Nov 2015 08:12:36 GMT
Author: ivan
Date: Tue Nov  3 08:12:36 2015
New Revision: 1712223

URL: http://svn.apache.org/viewvc?rev=1712223&view=rev
Log:
Do not insert newlines in base64 encoded responses in mod_dav_svn. This is
slightly reduce CPU usage on the client since it could decode responses with
bigger chunks instead line-by-line.

* subversion/mod_dav_svn/util.c
  (dav_svn__make_base64_output_stream): Call svn_base64_encode2() with
   BREAK_LINES=FALSE.

Modified:
    subversion/trunk/subversion/mod_dav_svn/util.c

Modified: subversion/trunk/subversion/mod_dav_svn/util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_dav_svn/util.c?rev=1712223&r1=1712222&r2=1712223&view=diff
==============================================================================
--- subversion/trunk/subversion/mod_dav_svn/util.c (original)
+++ subversion/trunk/subversion/mod_dav_svn/util.c Tue Nov  3 08:12:36 2015
@@ -620,7 +620,7 @@ dav_svn__make_base64_output_stream(apr_b
   wb->output = output;
   svn_stream_set_write(stream, brigade_write_fn);
 
-  return svn_base64_encode2(stream, TRUE, pool);
+  return svn_base64_encode2(stream, FALSE, pool);
 }
 
 void



Mime
View raw message