[Redis] Perl Redis Client news

Damien Krotkine damien at krotkine.com
Tue Nov 19 21:35:50 GMT 2013



On Tue, Nov 19, 2013, at 11:58 AM, Steffen Mueller wrote:
> On 11/19/2013 04:51 PM, Pavel Shaydo wrote:
> > On Mon Nov 18 18:20:29 2013
> > melo at simplicidade.org (Pedro Melo) wrote:
> >> RedisDB (I *think* its RedisDB…) has a XS interface. We could
> >> compare it with our read()-based performance…
> >
> > It was some time ago, and I have no time right now to repeat
> > benchmarks, but if I remember correctly RedisDB XS parser is about 30%
> > faster than RedisDB PP parser.
> 
> Interesting!
> 
> I did a fairly naive[1] XS implementation of a parser and another fairly 

[snip]

> 
> 
> So that's a factor of ~17x. :)

How does Protocol::Redis::XS perform on the same scenario ?

[snip]

> Now mind you, this is just for turning that response into a Perl array 
> reference (or a string (status+error) or undef ("*-1")). It doesn't 
> actually PROCESS what needs doing and it doesn't include reading from a 
> stream. The latter would likely make a significant difference.
> 
> Best regards,
> Steffen
> 
> [1] Naive here means that it's not fully validating. The C 
> implementation should be safe to the point of "won't segfault" and 
> "won't eat all your RAM", but it only traps a small number of error 
> conditions as exceptions and otherwise relies on GIGO.

That, plus dealing with streaming seems to require a lot of work
implementing and testing .



More information about the Redis mailing list