Does key length require storage?
Kevin A. Burton
burton at newsmonster.org
Mon Jan 24 16:08:52 PST 2005
Anatoly Vorobey wrote:
>It might be a good idea to mention in the docs that the key is stored
>explicitly along with the data, yes.
>In the current storage model, if you have lengthy data (say, a few times
>larger than your key length, or more), it usually won't help to shorten
>your key, since the item will end up in the same size class. If you have
>really short data, however, it will often help your memory usage to have
>shorter keys for such data.
Oh ... wow... the class size is dependent on both the key AND the data?
Hm... I guess I didn't realize. I guess this makese my java-memcached
serialized storage patches much less memory efficient.
If so then does it really make much sense to have a 2^3 size class?
Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an
invite! Also see irc.freenode.net #rojo if you want to chat.
Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html
If you're interested in RSS, Weblogs, Social Networking, etc... then you
should work for Rojo! If you recommend someone and we hire them you'll
get a free iPod!
Kevin A. Burton, Location - San Francisco, CA
AIM/YIM - sfburtonator, Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
More information about the memcached