On 4/5/07, Jeff Pang <[EMAIL PROTECTED]> 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