~/talk

Don't optimize, write optimal by Davit Abgaryan (Arm) | JSConfAM19

Talkat JS Conf Armenia 2019 · on Saturday, 2019-11-30· [javascript]
slides:none on file

Claims that pragmatic code structure yields speed: prefer predictable control flow and naming over microbench tweaks; avoid negative conditionals and don't repeat yourself inside to keep JITs happy. Demonstrates concrete pitfalls — nested helpers, deleted properties and changing object shape — and shows that preserving shape and property order matters for hidden-class optimizations. Shows an application refactor that measurably speeds execution, with live demos and numbers comparing before/after. Emphasis on patterns not tools.

AI-written summary · about

  1. 0:00Start
  2. 0:53Performance optimization example
  3. 2:42Readability issue
  4. 3:41Always don't avoid negative conditionals
  5. 4:32Method Chaining
  6. 12:03Avoid nested functions
  7. 13:02Write shorter functions
  8. 14:00Hidden classes
~/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.