Serhiy Storchaka added the comment:

> The patch is too optimistic, it gives different results depending on the 
> alignment of the memory buffer:

So this method is not applicable for a byte.  Here is a patch only for strings.

If a fast hash for bytes/memoryview is desirable, I can write a fast robust 
implementation for nonaligned data.  But this will be more cumbersome and a bit 

Added file:

Python tracker <>
Python-bugs-list mailing list

Reply via email to