[Opensim-dev] Bit packing (was: Upcoming work on alternative client stack)
Mana Janus
mana.janus at web.de
Mon Aug 18 09:52:57 UTC 2008
Melanie,
Not sure, if I understand correctly what you mean...
> Not really. Two memory accesses to retrieve 2 values packed into one
> byte are 2 accesses. in C#, C++, unsafe blocks or even assembly.
> They remain inefficient.
>
The alternative seems to store the 2 values in 2 bytes? How would two
memory accesses to retrieve two values from two bytes be more efficient
than retrieving them from the same byte? And if they are stored in the
same byte you have always the option to retrieve both with only one
memory access.
Don't get me wrong, I don't want to advertise bit packing, just would
like to understand your argument...
Mana
More information about the Opensim-dev
mailing list