I've been looking at the cost recently of fetches for libmemcached, and seeing if there was anything I could do to increase performance. What did I find? Half the cost currently is in the snprintf() sitting at the protocol sender. Half! Good news about this? If you are using the new binary protocol with Memcached this goes away completely :) snprintf() sucks.