~/talk

Get your resources faster, with importlib.resources

Talkat PyCon 2018 · on Saturday, 2018-05-12· [python]

importlib.resources provides concrete APIs like read_binary, read_text and context-manager path that avoid pkg_resources import-time overhead, work with zipimport, and require resources to live inside real packages. LinkedIn reports 25–50% faster CLI responsiveness after switching (with Shiv replacing PEX). Backported shim lets older Pythons adopt the efficient behavior. The library builds on Python’s import system, creates temporary files only inside a with block, and exposes loader hooks for custom sources.

AI-written summary · about

  1. 0:00Start
  2. 2:33Naive approach
  3. 11:00importlib.resources API
  4. 25:04Barry Warsaw
~/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.