[darcs-devel] [issue80] record: memory usage is 2X patch size

Ben Franksen bugs at darcs.net
Thu Jul 30 17:54:05 UTC 2020


Ben Franksen <ben.franksen at online.de> added the comment:

Our oldest open issue and it is still a problem. I found it can actually be as much as 20 
times with slightly smaller files.

>head --bytes=`python -c 'print 2**25'` /dev/zero > large
>time darcs add large      
Adding './large'
Finished adding:
./large
0,02s 20M
>time darcs record -am 32M --skip-long-comment
Finished recording patch '32M'
3,57s 648M
>head --bytes=`python -c 'print 2**26'` /dev/zero > large
>time darcs record -am 64M --skip-long-comment  
Finished recording patch '64M'
10,23s 1560M
>head --bytes=`python -c 'print 2**27'` /dev/zero > large
>time darcs record -am 128M --skip-long-comment
Finished recording patch '128M'
20,25s 3093M
>time echo yd|darcs obliterate
patch 927735e394244c8f0f042d51ceeb7102cca13206
Author: Ben Franksen <ben.franksen at online.de>
Date:   Thu Jul 30 19:50:24 CEST 2020
  * 128M
Shall I obliterate this patch? (1/3)  [ynW...], or ? for more options: patch 
a7b056521a8e2041c61494fe5f15c18f97e48f78
Author: Ben Franksen <ben.franksen at online.de>
Date:   Thu Jul 30 19:49:41 CEST 2020
  * 64M
Shall I obliterate this patch? (2/3)  [ynW...], or ? for more options: Finished obliterating.
81,83s 3185M
>time echo yd|darcs obliterate
patch a7b056521a8e2041c61494fe5f15c18f97e48f78
Author: Ben Franksen <ben.franksen at online.de>
Date:   Thu Jul 30 19:49:41 CEST 2020
  * 64M
Shall I obliterate this patch? (1/2)  [ynW...], or ? for more options: patch 
54f081bc4708d1ae886d7853b1c2e798aca54031
Author: Ben Franksen <ben.franksen at online.de>
Date:   Thu Jul 30 19:48:43 CEST 2020
  * large
Shall I obliterate this patch? (2/2)  [ynW...], or ? for more options: Finished obliterating.
0,00s 4M
37,33s 1384M

Note how much worse obliterate is versus record.

----------
priority: feature -> urgent

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue80>
__________________________________


More information about the darcs-devel mailing list