~/talk

weak collections, ephemerons, and private fields by Sigurd Schneider | JSCAMP 2019

Talkat JSCamp Barcelona 2019 · 2019-07-18..07-19· [javascript]
slides:none on file

Explains how weak maps polyfill private fields by storing per-object side tables, contrasts that with in-object private slots, and shows why generational GC matters: the generational GC remembered set must track cross-generation pointers. Describes a pathological case where huge weak maps in old space keep many young keys alive, implements an old weak maps with yonke said that scans those maps during young collections, and reports a microbenchmark improvement from ~2 minutes to ~2 seconds at about 8 million objects.

AI-written summary · about

  1. 0:00Start
  2. 4:43Distinguishing live and dead objects
  3. 9:18Ephemeron Semantics of WeakMap entries
  4. 17:15Observer without WeakRef
  5. 18:44The WeakRef Interface
  6. 20:33What does the generational hypothesis mean?
  7. 21:33Leveraging the generational hypothesis
  8. 22:52What about cross-generation references?
  9. 23:50V8 treats cross-generation links strongly
  10. 25:04Performance comparison
~/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.