~/lightning

Lightning Talk: Saturday Is Coming Faster - Convert year_month_day to Weekday Faster - Part 1

Lightningat CppCon 2024 · on Sunday, 2024-09-15· [compilers-and-language-design]
links:none on file
slides:none on file

Claims up to 3× faster conversion from year_month_day to weekday, with a concrete algorithm and assembly evidence rather than handwaving. Implementation exists in libstdc++ and performance is shown by inspecting generated code: a multiply-shift trick replaces slow mod 7, producing as little as six instructions (sometimes three operations plus a removed comparison). It requires a tight input range precondition so it is not a drop‑in replacement but is dramatically faster where applicable.

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.