binary protocol notes from the facebook hackathon

James Robinson jlrobins at socialserve.com
Wed Jul 11 13:30:57 UTC 2007


On Wed, 11 Jul 2007, marc at corky.net wrote:
...
> - It's easier that all values are kept to a the same endianess;  
> reduces
> confusion.
> - Nowadays MOST (but obviously not all) servers are running little
> endian.   So this saves byte swapping for most people's cases and  
> thus a
> few cycles are spared on each request -- isn't that the whole  
> point? ;)
...

As a vote in the opposite direction, I happen to run memcached on PPC  
hardware, whereas my clients are both PPC and intel. My mileage does  
indeed vary from yours, and would vote +1 for the correctness of  
network byte ordering.

----
James Robinson
Socialserve.com



More information about the memcached mailing list