~/talk

Investigating Magic Numbers: Improving the Inlining Heuristic in the Glasgow ...

Talkat Haskell Symposium 2022 · 2022-09-15..09-16· [haskell]
links:none on file
links:none on file
slides:none on file

Explores changing GHC’s hard-coded inliner “magic numbers” by turning ten tuning constants into parameters, compiling GHC with different settings and running a 10-package benchmark (using Stackage samples and inline pragmas) across 320 random configurations; finds inline pragmas give on average +10% speed, exhaustive per-program search yields +27% but is impractical, a single new global configuration gives +22% on average, and a simple machine learning model that predicts per-program configuration achieves about 26% improvement; artifacts and dataset accompany the study.

AI-written summary · about

  1. 0:00Inlining research introduction
  2. 4:16Inline pragmas insights
  3. 8:06Magic numbers in GHC inliner
  4. 10:30Randomizing magic numbers
  5. 12:41Geometric mean speedup
  6. 14:08Random search effectiveness
  7. 16:56Naive clustering results
  8. 17:41Future directions
~/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.