~/talk

The Story Behind the Fastest Image Comparison Library

Talkat FUN OCaml 2024 · 2024-09-16..09-17· [functional-programming]
slides:none on file

Library odiff claims fastest in world (benchmarks) for pixel-by-pixel image diffs, implemented in OCaml with a bit of C and tuned by avoiding boxing, using unboxed floats, and comparing raw integer pixels to skip heap allocations. Decoding moves from caml_images to bigarray plus libjpeg-turbo/libpng, cutting costly per-row allocations. GC is tuned (16 MB heap, ~80 minor and 6 major collections for huge runs, majors <1 ms). Cross-compiles to Windows, migrated to OCaml 5.2, and ships via npm packaging.

AI-written summary · about

  1. 0:00Introduction to odiff
  2. 2:29Project origin and approach
  3. 7:38Profiling and inefficiencies
  4. 10:56Optimizing OCaml assembly
  5. 18:20Focusing on real performance
  6. 20:35Improving comparison logic
  7. 24:25GC tuning for performance
  8. 27:32Image decoding bottlenecks
  9. 30:39Windows support challenges
  10. 33:47Modernizing the build system
  11. 37:10Q&A and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.