Eric Kow <[email protected]> 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.
Yours, Petr. _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
