I would like to read a large finitemap off of a
disk faster than the time it takes to read the
entire list of pairs.

My solution is to save it as a bunch of smaller
lists of pairs covering various key intervals (or
recency intervals).  I then can readfile all of
these lists back into a bunch of finitemaps.
Because readfile is lazy my program can start very
quickly without waiting to read the contents of
all of these files.

To make this solution work, I need some
datastructure that looks like a finitemap but
operates on a bunch of them organized either in
parallel (key interval model) or series (time
interval model).  Is there some pre-existing
data structure that does this or do I need to roll
my own?

Or is there a better way to (de-)serialize
FiniteMaps?

-Alex-

______________________________________________________________
S. Alexander Jacobson tel:917-770-6565 http://alexjacobson.com
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to