~/talk

A Deep Dive into Binaries

Talkat ElixirConf 2015 · 2015-10-01..10-03· [web-performance]
github:tyre
slides:none on file

Covers concrete rules and numbers: binaries copy onto the process heap when ≤64 bytes and become process-heap binaries up to 64 bytes, larger data uses ref-counted sub-binaries that prevent parent GC until released. Shows parsers for PNG/JPEG/PDF built with binary pattern matching, demonstrates binary.copy to avoid GC retention for long-lived slices, explains delayed sub-binary optimization inside BEAM and how to enable bin_opt_info to see missed optimizations.

AI-written summary · about

  1. 0:00Intro
  2. 0:58Table of Contents
  3. 1:31Properties
  4. 2:44Creating a binary
  5. 3:09What is an Elixir binary?
  6. 4:41Types - Defaults
  7. 5:30Options - Ordering
  8. 6:12Options - Unit and Size - Example
  9. 8:03Matching - Use Case
  10. 11:06Internal Representations (cont.)
  11. 12:58Process Heap Binaries
  12. 14:11Reference Counting
  13. 17:19Appending Binaries
  14. 20:24Sub-binary sadness
  15. 24:22Sub-binary solution!
  16. 24:47Binary Matching - The Sad Way
  17. 27:53Binary Matching - happy path
  18. 31:27Binary Optimization - Compiler Flag
~/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.