homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Giovanni.Bajo
Recipients Arfrever, Giovanni.Bajo, PaulMcMillan, Vlado.Boza, alex, arigo, benjamin.peterson, camara, christian.heimes, dmalcolm, koniiiik, lemburg, serhiy.storchaka, vstinner
Date 2012年11月07日.11:26:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <E3663F6C-E6D2-447E-B07D-47BD335DA5A2@gmail.com>
In-reply-to <1352274030.09.0.552811539255.issue14621@psf.upfronthosting.co.za>
Content
Il giorno 07/nov/2012, alle ore 08:40, Serhiy Storchaka <report@bugs.python.org> ha scritto:
> Serhiy Storchaka added the comment:
> 
> I tested different kind of strings.
> 
> $ ./python -m timeit -n 1 -s "t = b'a' * 10**8" "hash(t)"
> $ ./python -m timeit -n 1 -s "t = 'a' * 10**8" "hash(t)"
> $ ./python -m timeit -n 1 -s "t = '\u0100' * 10**8" "hash(t)"
> $ ./python -m timeit -n 1 -s "t = '\U00010000' * 10**8" "hash(t)"
> 
> current SipHash
> 
> bytes 181 msec 453 msec 2.5x
> UCS1 429 msec 453 msec 1.06x
> UCS2 179 msec 897 msec 5x
> UCS4 183 msec 1.79 sec 9.8x
Hi Serhiy,
can you please attach the generated assembly code for the siphash function with your compiler and your optimization flags (that is, the one that produces the above results)?
Thanks!
-- 
Giovanni Bajo
History
Date User Action Args
2012年11月07日 11:26:19Giovanni.Bajosetrecipients: + Giovanni.Bajo, lemburg, arigo, vstinner, christian.heimes, benjamin.peterson, Arfrever, alex, dmalcolm, PaulMcMillan, serhiy.storchaka, Vlado.Boza, koniiiik, camara
2012年11月07日 11:26:19Giovanni.Bajolinkissue14621 messages
2012年11月07日 11:26:19Giovanni.Bajocreate

AltStyle によって変換されたページ (->オリジナル) /