~/talk

One Billion Row Challenge in Golang

Talkat P99 CONF 2024 · 2024-10-23..10-24· [go]
links:none on file
slides:none on file

Builds a Go pipeline that processes a 16GB input file and iteratively improves throughput using Go CPU and flamegraph profiling. Starts with a scanner+map baseline at 6m13s → 28s by: replacing scanner with 64MB chunked reads, switching float parsing to ints, summarizing per-station stats instead of storing all values, adopting a map-reduce with 9 workers pattern, and shrinking channel messages from 10M items to 512. Shows profiles at each step and timing numbers.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:07What is 1BRC challenge
  3. 3:54Baseline implementation
  4. 6:46Adding concurrency
  5. 8:10Producer-consumer pattern
  6. 12:25Optimizing data structures
  7. 14:55Reading file in chunks
  8. 17:50Map-reduce pattern
  9. 20:37Final optimizations
  10. 21:22Further improvements
~/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.