
16 Feb
2012
16 Feb
'12
5:29 p.m.
On Thu, Feb 16, 2012 at 2:03 PM, Antoine Latter
You could have a re-implemented HashMap which would un-pack the payload's ByteString constructor into the leaves of the HashMap type itself.
Then you would save on both the keys and the values.
Note that ByteString has a high per-value overhead due to the internal use of ForeignPtrs and indicies that track offset/size: http://blog.johantibell.com/2011/06/memory-footprints-of-some-common-data.ht... -- Johan