[issue30093] Unicode eq operation with hash.

2017-04-18 Thread Dong-hee Na
Changes by Dong-hee Na : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30093] Unicode eq operation with hash.

2017-04-18 Thread Dong-hee Na
Dong-hee Na added the comment: Thanks for the reply. I did not know it was already discussed. The conclusion of the thread looks reasonable. -- ___ Python tracker

[issue30093] Unicode eq operation with hash.

2017-04-18 Thread STINNER Victor
STINNER Victor added the comment: My previous attempt which ended with "Raymond Hettinger: I don't think it is worth it." http://bugs.python.org/issue16286#msg216654 Most string comparisons are comparisons of strings of less than 20 characters. --

[issue30093] Unicode eq operation with hash.

2017-04-18 Thread Dong-hee Na
New submission from Dong-hee Na: If the Unicode compare operation is done by comparing the hashes, it is likely to be efficient because memory comparison is not necessary. If this idea is approved I could upload my PR right now. :-) (I already checked local unit test is passed.) --