Hi! I'm not sure if we could call it a waste since CAS is a important feature but sure, it would consume a lot of memory in usecases with lots and lots of small objects as you mentioned. I guess the ideal thing is to only consume that 8 bytes when CAS is actually required (e.g. when we have req_cas_id) but this has the drawback of possibly complicating the codebase...
This is a tough one ;) Toru On Fri, Nov 21, 2008 at 1:56 AM, Domas Mituzas <[EMAIL PROTECTED]> wrote: > > HI! > > so, I was looking a bit at memory efficiency a bit, esp. at smaller > object storage, and it was interesting to see that memcached always > reserves CAS identifier space: > > uint64_t cas_id; /* the CAS identifier */ > > If this is needed just for CAS feature, thats wasting lots of memory, > methinks. > > What do you think? > > Domas
