logoalt Hacker News

erutoday at 1:49 AM1 replyview on HN

If you are willing to sacrifice performance, you can implement dicts via linear lookup in much less code than a proper hash table.


Replies

FridgeSealtoday at 2:40 AM

It’s Python, you’ve already sacrificed performance, what a little bit more?

show 1 reply