Question to Cache::Memcached

Joachim Bauernberger joachim@bauernberger.org
Tue, 8 Jun 2004 22:46:24 +0200


Hi,

forget the last mail (I shouldn't have opend my mouth .... )

On Tuesday 08 June 2004 22:41, Joachim Bauernberger wrote:
> Hi,
>
> Why not do something like this in _hashfunc():
>
> $hash .= int(ord($_));
>
> and just make use of "use integer" within get_sock()
>
> ... this would make _hashfunc slimmer and maybe faster (with large keys you
> end up doing more $hash*33) and you only need "use integer" in get_sock()


would end up with a result of -1 with large numbers with the above ...

> ...
>
> Regards,
> ~/joachim