Bug Tracker Home
Issues Show Unassigned Show All Search Issues
Patches Show Open Show All Search Patches
Login Remember me? Register Lost your login?
Help Roundup docs
Created on 2014-11-07.11:24:48 by gh, last changed 2014-11-15.20:54:27 by gh.
Since the patch-index writes and reads patch hashes many times, it is more economical to use the hash itself instead of its string representation. This brings an improvement in memory usage and also of disk usage of the patch index. Memory use of "darcs optimize enable-patch-index" on darcs.net repo: Before: https://www.dropbox.com/sh/v0m2xj7ky3vgkjk/AADW_5ZwJqMqit7sIJJTopQya/sha1/before.pdf?dl=0 After (the datatype SHA1 appears as ABCDE in the report since I did it with an old version of this patch): https://www.dropbox.com/sh/v0m2xj7ky3vgkjk/AAAlla_tMMdyLC3Yo7-uvOEqa/sha1/after.pdf?dl=0 1 patch for repository http://darcs.net: patch bddd039e0b72dace6242272b690a5c97d8fbc0a1 Author: Guillaume Hoffmann <guillaumh@gmail.com> Date: Fri Nov 7 08:08:25 ART 2014 * directly pass around SHA1 of patches instead of string representation
Self accept, goes in 2.10 as optimization.