Movatterモバイル変換
[0]ホーム
[Python-Dev] Algoritmic Complexity Attack on Python
Greg Ewinggreg@cosc.canterbury.ac.nz
Tue, 03 Jun 2003 10:26:39 +1200 (NZST)
> We benchmarked it, and without assembly optimizations, uhash still> exceeds perl.It's not just the speed of the hashing itself that you haveto consider, but also how it interacts with the rest ofthe dictionary implementation, and how it behaves underaccess patters found in a typical Python program.The core Python developers have put a LOT of effort overthe years into tuning the Python dict implementationspecially for Python. It's not reasonable to expect themto suddenly throw all that away and replace it withsomething that's completely untried in this context!Greg Ewing, Computer Science Dept, +--------------------------------------+University of Canterbury, | A citizen of NewZealandCorp, a |Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |greg@cosc.canterbury.ac.nz +--------------------------------------+
[8]ページ先頭