[darcs-users] darcs patch: Use index-based diffing in Record. (and 57 more)

Petr Rockai me at mornfall.net
Sat Sep 12 20:19:12 UTC 2009

Eric Kow <kowey at darcs.net> writes:
>> +   where set = Set.fromList . map BC.pack
>> +         unset = map BC.unpack . Set.toList
> Why do the BC.pack and BC.unpack make a difference?
Because you have to keep all the strings in the sets in memory at once. The
bytestrings are both more efficient for storage and for comparisons (which sets
do a lot of) by a large margin.


More information about the darcs-users mailing list