~/talk

Performance tricks learned from low level developers

Talkat Riga Dev Days 2019 · 2019-05-29..05-31· [python]
links:none on file
slides:none on file

Shows concrete, repeatable tricks: use Python bytecode disassembly to see expensive ops, replace repeated attribute lookups by assign hot methods to locals to avoid per-iteration dictionary searches, and reorder binary fields to respect data-type alignment (reordering saved gigabytes in large parses). Example: a binary parser handling ~3,842 transactions (~100 MB output, several hundred MB input) runs ~174 seconds before tuning and drops dramatically after removing those lookups and packing more efficiently. Also points out low-level idioms (e.g. XOR-zero) that inspired higher-level optimizations.

AI-written summary · about

  1. 0:00Introduction and hacking history
  2. 11:08Why we stopped hacking
  3. 17:36Learning from low-level tricks
  4. 23:07Optimizing Python bytecode
  5. 31:55Memory alignment in Python
  6. 45:42Frameworks like a piece of paper
  7. 49:17Closing and call to action
~/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.