Re: I'm a total push-over..
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Jan 24, 2008, 16:28 UTC
- Message-ID
- <37fcd2780801240828vac82e6ds4da5aecde56e8d2f@mail.gmail.com>
- In-Reply-To
- <4798B633.8040606@op5.se>
On Jan 24, 2008 7:00 PM, Andreas Ericsson <ae@op5.se> wrote:
Show 10 quoted lines
> Marko Kreen wrote: > > > > Jenkins hash is fast because it does not look at individual bytes. > > If you _do_ want to look at them for unrelated reasons, (case-insensitive, > > unicode-juggling), then it obiously loses the point. That is, if you > > want to process the string in one go. > > > > I believe the ability to add unicode-juggling was a major point > with the patch, so perhaps Jenkins' isn't such a good option.
I don't think you can any meaningful unicode-juggling without converting symbols to UCS-4, and after that it makes much more sense to operate with uint32 than bytes. So, Jenkins' hash is still relevant, just because it does not operate on single bytes, but using uint32.
Dmitry