~/talk

The 1 Trillion Pixel Maze: My Decade-Long Obsession with C# Optimization

Talkat NDC London 2026 · 2026-01-26..01-30· [frontend-architecture]
links:none on file
slides:none on file

C# implementation rethinks maze generation end to end: backtrack algorithm with bit arrays, disk‑tiled caching and chunked enumerable processing yields huge images; custom image‑pyramid tool replaces Gigapan/TIFF failures. Benchmarks report 18.5 hours to generate, 5.4 hours to compute path, 62 hours to render, 18 billion total steps and 577 million directions reduced to 144 MB via 2‑bit junction encoding. Experiments scale from 64k×64k to a hosted mega output (~400 GB); the pipeline completes successfully for the large runs and runs on Azure VMs using aggressive inlining and ExoShiftRandom.

AI-written summary · about

  1. 0:00Trillion pixel maze obsession
  2. 2:20What defines a maze
  3. 6:30Goal for biggest maze
  4. 9:01First implementation
  5. 13:57Disk storage and caching
  6. 16:01512k maze and compression
  7. 21:073D view of 2048x2048 maze
  8. 22:11Million pixel maze and Azure
  9. 26:05Image format and tool limits
  10. 28:13Stats from million pixel maze
  11. 31:01Optimizing maze generation
  12. 34:35Backtrack algorithm improvements
  13. 37:22Eliminating branch prediction
  14. 40:54Benchmarking .NET versions
  15. 41:15Alternative maze algorithms
  16. 42:40Division algorithm limits
  17. 43:053D maze demo
  18. 44:09Maze coasters and PNG optimization
  19. 44:55Comparing maze algorithms
  20. 48:39Closing remarks and Q&A
~/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.