HackerTube 中文?

Modern Dictionaries by Raymond Hettinger

SF PythonYouTube ↗

Further reading 2

Caption notes

Python dictionaries use sparse indices and dense entries to improve memory use and iteration. Deletion, probing and ordering semantics shape the tradeoffs.

Original passages · 6
smush all of these together and put the holes in a tiny little table
Modern Dictionaries by Raymond Hettinger · ▶ 24:45–24:56
store is key one time the hash one time and only save the values
Modern Dictionaries by Raymond Hettinger · ▶ 29:25–29:44
features that individually seem to make sense but brought together might be terrible
Modern Dictionaries by Raymond Hettinger · ▶ 63:47–64:01
when you go to time it you're timing the feature of interest which puts it in cash anyway
Modern Dictionaries by Raymond Hettinger · ▶ 48:33–48:41
we fetch an entire cache line at a time
Modern Dictionaries by Raymond Hettinger · ▶ 45:23–45:27
there's no space in between them
Modern Dictionaries by Raymond Hettinger · ▶ 31:13–31:18

Hacker News comments

View original on HN ↗