~/talk

Making API Platform serialization superfast

Talkat API Platform Conference 2024 · 2024-09-19..09-20· [php]
slides:none on file

API Platform swaps Symfony Serializer for a generated JsonEncoder that uses TypeInfo metadata to predict JSON shapes, write directly to a stream and keep memory flat for huge collections. The encoder generates PHP functions once, enabling streaming and tokenized, lazy parsing, and benchmarks show up to 40× faster serialization (10×–15× with an object mapper). Limitation: it cannot change object shape, so use one resource per representation plus an object-mapper for conversions; integration needs a SerializeAndResponseProcessor to stream responses.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:57What is serialization
  3. 5:37Symfony serializer fundamentals
  4. 10:24Understanding metadata in PHP
  5. 15:55Symfony serializer memory limits
  6. 17:24Introducing JsonEncoder component
  7. 23:35Serialization shape limitations
  8. 24:42Resource design best practices
  9. 27:43Object mapping with ObjectMapper
  10. 29:11Performance benchmarks
  11. 30:21Future developments 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.