Perl Client
Brad Fitzpatrick
brad at danga.com
Sun Jul 2 20:47:55 UTC 2006
On Sun, 2 Jul 2006, Brian Moon wrote:
> Marcel Holan wrote:
> > Hi,
> >
> > we haven't looked for a long time on Cache::Memcached (yeah the Perl Client), because it simply works
> > for us. But of course one does not want to be potentionally inefficient, so
> > before I'll have a look at the new Perl-Client (allegedly 2times as fast as
> > Cache::Memcached on CPAN - but not according to your tests).
> >
> > Well I had a brief look at Cache::Memcached 1.18 on CPAN. Uuuuh - oooh....
> >
> > Clearly written way before the days of PBP.
> > Clearly written by a Non-Perlie.
> > Clearly improvable.
> >
> > Strange. I thought Tree::Nary (on CPAN) which we have re-written for our own
> > use and lowered its space requirements by a factor of eight and improved its
> > speed by a factor of 10-20 (depending on operation) was an exception.
> >
> > - Never use "return undef"
> > - Never use for-push, use map instead
> > - fields?
> > - shift instead @_; $_[x] instead shift
> > - ...
> >
>
> Well, I did not write the Perl client. Um, I believe Danga (maybe even
> Brad himself) did.
Yeah, me and Avva.
> Brad has spoken very kindly of other rewriting it to
> be better and more efficient.
There are some slow paths in parsing that could be sped up, for sure, but
most attempts to make it faster have thrown out the baby with the
bathwater: they're really fast but don't handle any of the error
conditions, some not even doing multi-server support.
Artur started writing the parsing in XS recently, but got sidetracked.
- Brad
More information about the memcached
mailing list