perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perrin Harkins" <phark...@gmail.com>
Subject Re: BerkeleyDB cache for webservice
Date Thu, 05 Apr 2007 16:57:07 GMT
On 4/5/07, Jeff Pang <pangj@earthlink.net> wrote:
> I've used both (DB_File and memcached),but I found memcached was faster than DB_File
since memcached used memory as the cache device but DB_File used local filesystem.Am I not
right?:)

No, BerkeleyDB is significantly faster than memcached.  It uses a
shared memory cache.  The calls to it are in-process calls with no
network overhead while memcached makes all calls over TCP sockets.

Note that DB_File is not the one I'm talking about here.  I mean the
BerkeleyDB module.

- Perrin

Mime
View raw message