6 ms·
Linear-Log Bucketing: Fast, Versatile, Simple
- pacaro 11y agoI wish that I knew the name, but this reminds me of the banknote sequence 1 2 5 10 20 50 100 ...
- rw 11y agoHyperinflation sequence for banknotes: http://oeis.org/A051109 http://oeis.org/A051109
- bluejekyll 11y agoI believe memcached uses a similar algorithm for storing objects in its heap space. It's a nice way to strike a balance between waste and speed.
- jibsen 11y agoIs it just me, or are the bin sizes listed from jemalloc (assuming 150 should be 160, and 182 be 192) not dividing each power-of-2 range linearly? 16, 32, 48, 64, 80, 96, 128, 160, 192, 256, 320, 384, … It looks like, from 64 and up, each power-of-2 range is divided into two quarter ranges and one half range.
- to3m 11y agoThis sounds like what the TLSF allocator does: http://www.gii.upv.es/tlsf/main/docs http://www.gii.upv.es/tlsf/main/docs