On 23 February 2011 16:03, Johan Tibell <johan.tib...@gmail.com> wrote:
> Thanks for the examples. Point 3 is interesting but most of the gain
> there could probably be had by telling the user to use (bigmap `union`
> smallmap). My guess is that the user has a good idea which argument is
> larger/smaller.

Totally agreed - this matches my experience with Map/Set.

> And I didn't see anything that looked particularly bad. The core uses
> unboxed values everywhere possible and the recursive function (i.e.
> inserts) returns an unboxed pair (# Int#, Tree k v #).

Right. I was wondering if you were returning (Int, Tree k v), in which
case CPR wouldn't unbox the Int - but I see you already thought of
that issue.

By the way, do you plan to add a HashSet to complement HashMap?

Thanks for all the work on the library!
Max

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to