tanmaykm / Blobs.jl

Facilitate distributed out of core computation over blobs of data.
Other
2 stars 1 forks source link

multiple cache limiting strategies #6

Closed tanmaykm closed 8 years ago

tanmaykm commented 8 years ago

Cache limit can now be either plain item count or the memory footprint. The type of limit can be specified (as a function) along with the limit value. Two strategies are already supplied, maxcount and maxmem.

The maxmem strategy uses Base.symmarysize to estimate the memory footprint of cached items.