On Thu, Feb 16, 2012 at 2:03 PM, Antoine Latter <[email protected]> wrote: > 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.html -- Johan _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
