On Tue, Oct 30, 2012 at 11:06 AM, Dvir Volk <
dvi...@gmail.com> wrote:
> in theory you could use first class keys and not hashes and expire
> them, so frequent visitors will never be reset and less frequent will
> be automatically garbage collected. It's a fairly small change that
> won't add much memory overhead if you're careful.
hmm... what I was thinking for was the case where some users were
active in a first period and then become not-active.
In this case new users, for which there is no sequential ID, will get
a greater one thus making the use of high-order bits more usual than
their low counterparts. Is this the case?
This would lead to an not optimal usage of memory.
Bitmap are used here since they perform better than sets, right? So
what I was thinking of was to dump those bitmap to set on a (say)
daily basis... this way it would be possible to reset the mapping and
keep the bitmap memory under control.
What do you think?
Cheers,
matteo.