subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fuhrmann <>
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:

The improvements address the issues listed there:

-- 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

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

* 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 >

View raw message