subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fuhrmann <stefanfuhrm...@alice-dsl.de>
Subject [PATCH v3] speed up svn_txdelta_apply_instructions
Date Thu, 20 May 2010 22:47:35 GMT
Hi there,

this is an improved version of the patch posted here:

  http://svn.haxx.se/dev/archive-2010-05/0002.shtml

The improvements address the issues listed there:

  http://svn.haxx.se/dev/archive-2010-05/0216.shtml

-- Stefan^2.


[[[
svn_txdelta_apply_instructions is relatively slow for long
instruction sequences copying small pieces of data. This
seems to be particularly visible in non-packed FSFS
repositories.

This patch extracts invariants out from the 'for' loop,
optimizes overlapping copies as well as small data copy
runtime. 

* subversion/libsvn_delta/text_delta.c
  (fast_memcpy, patterning_copy): new functions,
  optimized for our specific workload
  (svn_txdelta_apply_instructions): reduce loop overhead,
  use fast_memcpy and patterning_copy
 
patch by stefanfuhrmann < at > alice-dsl.de
]]]


Mime
View raw message