Y
Hacker News
new
|
ask
|
show
|
jobs
by
morpher
4848 days ago
The OP is talking about a list with at most five items in it. Linear search is not an issue. Using a dict may even be slower than just searching a 5 element array linearly...