[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.)

--
components: Unicode
messages: 291833
nosy: corona10, ezio.melotti, haypo
priority: normal
severity: normal
status: open
title: Unicode eq operation with hash.
type: performance
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com