[darcs-devel] [patch1215] use bytestring functions dropWhile and break instead o...

Guillaume Hoffmann bugs at darcs.net
Wed Nov 12 18:55:34 UTC 2014


New submission from Guillaume Hoffmann <guillaumh at gmail.com>:

The implementation of these functions in darcs is from 2008.
With this patch we trim some lines of code and have a small memory
improvement, here on patch index creation in the darcs.net repo:

before:
        total time  =        5.95 secs   (5945 ticks @ 1000 us, 1 processor)
        total alloc = 4,126,233,968 bytes  (excludes profiling overheads)

after (two measurings):
        total time  =        5.85 secs   (5853 ticks @ 1000 us, 1 processor)
        total alloc = 3,892,040,296 bytes  (excludes profiling overheads)

        total time  =        5.97 secs   (5969 ticks @ 1000 us, 1 processor)
        total alloc = 3,892,020,360 bytes  (excludes profiling overheads)

1 patch for repository http://darcs.net:

patch 0e0682af43f03b9e3299ecee959596b7e80d0c3b
Author: Guillaume Hoffmann <guillaumh at gmail.com>
Date:   Wed Nov 12 15:45:34 ART 2014
  * use bytestring functions dropWhile and break instead of ours

----------
files: patch-preview.txt, unnamed, use-bytestring-functions-dropwhile-and-break-instead-of-ours.dpatch
messages: 17772
nosy: gh
status: needs-screening
title: use bytestring functions dropWhile and break instead o...

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch1215>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-preview.txt
Type: text/x-darcs-patch
Size: 1874 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20141112/62ab6436/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use-bytestring-functions-dropwhile-and-break-instead-of-ours.dpatch
Type: application/x-darcs-patch
Size: 2072 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20141112/62ab6436/attachment-0001.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/20141112/62ab6436/attachment.obj>


More information about the darcs-devel mailing list