Author: rhuijben
Date: Sun Jul 14 20:14:36 2013
New Revision: 1503046

URL: http://svn.apache.org/r1503046
Log:
Apply a minor performance tweak in ra_svn's blame handler that is also
implemented in the other ra layers: avoid work when the txdelta is ignored
by using the standard noop handler to receive all windows.

* subversion/libsvn_ra_svn/client.c
  (ra_svn_get_file_revs): Don't create a stream when the handler is the
    explicit noop window handler, as that will not use the data anyway.

Modified:
    subversion/trunk/subversion/libsvn_ra_svn/client.c

Modified: subversion/trunk/subversion/libsvn_ra_svn/client.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_svn/client.c?rev=1503046&r1=1503045&r2=1503046&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_svn/client.c (original)
+++ subversion/trunk/subversion/libsvn_ra_svn/client.c Sun Jul 14 20:14:36 2013
@@ -2010,7 +2010,7 @@ static svn_error_t *ra_svn_get_file_revs
         {
           svn_stream_t *stream;
 
-          if (d_handler)
+          if (d_handler && d_handler != svn_delta_noop_window_handler)
             stream = svn_txdelta_parse_svndiff(d_handler, d_baton, TRUE,
                                                rev_pool);
           else


Reply via email to