Message178836
Giovanni, why do you think that hashing of unicode strings is slower than byte strings?
First of all ASCII only unicode strings are packed and use just one byte per char. CPython's FNV implementation processes one element in each cycle, that is one byte for bytes and ASCII unicode, two bytes for UCS-2 and four bytes for UCS-4. Bytes and UCS-4 strings require the same amount of CPU instructions. |
|
Date |
User |
Action |
Args |
2013-01-02 18:51:52 | christian.heimes | set | recipients:
+ christian.heimes, lemburg, arigo, gregory.p.smith, mark.dickinson, ncoghlan, vstinner, benjamin.peterson, iElectric, Arfrever, alex, cvrebert, dmalcolm, Giovanni.Bajo, PaulMcMillan, serhiy.storchaka, Vlado.Boza, koniiiik, sbermeister, camara, Łukasz.Rekucki, ReneSac, Bob.Ziuchkovski |
2013-01-02 18:51:52 | christian.heimes | set | messageid: <1357152712.45.0.811391231368.issue14621@psf.upfronthosting.co.za> |
2013-01-02 18:51:52 | christian.heimes | link | issue14621 messages |
2013-01-02 18:51:52 | christian.heimes | create | |
|