Y
Hacker News
new
|
ask
|
show
|
jobs
by
pwang
5350 days ago
Unfortunately, the ord() function call overhead in Python may swamp the difference in speed between a dict lookup (hashtable) and a list lookup (ordinal index).