[darcs-devel] [patch1567] two improvements for annotate command

Ben Franksen bugs at darcs.net
Wed Aug 9 11:12:41 UTC 2017


New submission from Ben Franksen <ben.franksen at online.de>:

Separating these two improvements to the annotate command from
https://hub.darcs.net/bf/darcs-encoding.

2 patches for repository /home/franksen/src/darcs/tmp:

patch 6c5d5b7ec2ce1cf805e489d02279412c739ed2a4
Author: Ben Franksen <ben.franksen at online.de>
Date:   Thu Apr 27 18:38:13 CEST 2017
  * plugging memory leak in annotate

patch 5ab1a2344812c29660ef4c6a6267f3a55a637d9f
Author: Ben Franksen <ben.franksen at online.de>
Date:   Fri Apr 28 16:55:39 CEST 2017
  * improve efficiency of annotate
  
  The patch index makes finding the relevant patches quite efficient,
but when
  a patch contains many hunks, the previous implementation took a very long
  time to finish. This was because it naively applied every hunk and
then used
  diff to see which lines were changed.
  
  The new implementation directly observes the effect of patches on the
  Annotated structure using the new Annotate patch interface (type class).
  This also makes attribution of lines to patches more accurate, since the
  result no longer depends on the diff algorithm that annotate used
  internally.

----------
files: plugging-memory-leak-in-annotate.dpatch
messages: 19516
nosy: bf
status: needs-screening
title: two improvements for annotate command

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch1567>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plugging-memory-leak-in-annotate.dpatch
Type: text/x-darcs-patch
Size: 27803 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20170809/5e183ffa/attachment-0001.bin>


More information about the darcs-devel mailing list