~/talk

The Slot Map Data Structure

Talkat C++Now 2017 · 2017-05-15..05-20· [c-and-cpp]
slides:none on file

A slot map provides true constant time lookup, insert and erase (not amortized except when allocation occurs) by storing elements in dense contiguous memory and returning stable unique keys with an index+generation pair so stale keys never access recycled slots. Implementation uses three arrays: data, indices (holds index, generation and a free list), and a reverse mapping for constant-time erase that fills holes by moving the last element and updating its index. Trade-offs: allocation spikes, extra indirection and memory overhead.

AI-written summary · about

  1. 0:00Start
  2. 0:17Guarantees of a slot_map
  3. 0:45How It Works: Overview
  4. 3:13Tradeoffs
  5. 3:51Questions/Comments/Contribute
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.