Queue which tracks actual in-memory element size?

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Queue which tracks actual in-memory element size?

Bardur Arantsson-2
Hi all,

So we have the TBQueue[1] which tracks the number of elements, but does
anyone know if there's an equivalent queue which the actual combined
size of the elements? (I'd be quite happy if it used "gsize" or similar,
but I suppose the ideal would be if I could supply a "size estimator"

It seems like an obvious generalization of TBQueue[2], but my Google-fu
is letting me down at the moment.



[2] TBQueue would be the equivalent of estimating every element to have
size 1.

Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
Only members subscribed via the mailman list are allowed to post.