> Am 08.06.2011 16:11, schrieb Justin Sheehy:
> The saving seems even smaller if you consider the overhead imposed by the
> memory allocator. I wrote a small test program in C++ which allocates one
> million blocks of memory of a given size and prints the overhead for each
> allocation. Turns out the overhead ranges from 8 to 23 bytes in a sawtooth
> like pattern (on a 64bit Linux machine):
>
--snip
>
> Not much you can do about that, unless one wants to use unaligned memory,
> which one doesn't.

Memory pools.
Preallocation+slicing.

Games to be played.

-mox

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to