~/talk

multi_span<...>

Talkat C++Now 2019 · 2019-05-05..05-10· [c-and-cpp]
links:none on file
slides:none on file

C++20 has span but common particle-system code shows a problem: interleaved arrays waste about 50% of cache when density ignores speed. Creating separate arrays fixes layout but forces passing two lengths. The solution is multi_span: a container of multiple typed spans that share one size and enforce equal length. It supports making from separate buffers, extracting individual spans, subslice all at once, and converting to a subset-of-types; it simplifies buffer-heavy code and works in practice.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.