[darcs-devel] [patch1216] refactor patch index code a bit (and 1 more)

Ganesh Sittampalam bugs at darcs.net
Thu Nov 13 07:53:25 UTC 2014


New submission from Ganesh Sittampalam <ganesh at earth.li>:

Just for discussion/experimentation for now.

Guillaume mentioned on IRC that darcs might be holding all
the patches in memory when building a patch index from scratch.

This change ought to make it more incremental as PatchSet is
the standard structure for reading a repository lazily, but
in practice I don't see much difference in memory usage
with +RTS -s

2 patches for repository darcs-unstable at darcs.net:screened:

Thu Nov 13 07:26:27 GMT 2014  Ganesh Sittampalam <ganesh at earth.li>
  * refactor patch index code a bit
  
   - generalise return type of patches2patchMods to make it easier
     to call incrementally
  
   - abstract out patchSet2patchMods in preparation for a more
     efficient implementation
  

Thu Nov 13 07:40:15 GMT 2014  Ganesh Sittampalam <ganesh at earth.li>
  * try to build patch index incrementally

----------
files: patch-preview.txt, refactor-patch-index-code-a-bit.dpatch, unnamed
messages: 17779
nosy: ganesh
status: needs-screening
title: refactor patch index code a bit (and 1 more)

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch1216>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-preview.txt
Type: text/x-darcs-patch
Size: 5003 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20141113/6def747e/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: refactor-patch-index-code-a-bit.dpatch
Type: application/x-darcs-patch
Size: 40935 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20141113/6def747e/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unnamed
Type: application/octet-stream
Size: 5 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20141113/6def747e/attachment-0001.obj>


More information about the darcs-devel mailing list