~/talk

Optimizing Python Startup Time by Code Data Share

Talkat PiterPy 2024 · 2024-09-18..09-27· [python, compilers-and-language-design]
links:none on file
slides:none on file

A concrete tool called code data share serializes CPython code objects into a memory-mapped archive, copies constants and variable-length objects, patches type pointers for ASLR, bumps reference counts or uses Python 3.12’s Immortal mechanism, and skips repeated IO and marshal work. Integrated with Alibaba Cloud FC and open sourced, the approach yields about 20–25% startup reduction on 3.11–3.12 for heavy-package workloads like torch by eliminating thousands of file reads; it works but needs per-version upkeep.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 2:16Speaker introduction
  3. 3:39Python startup time challenges
  4. 9:14Code Data Share concept
  5. 13:19Memory mapping Python objects
  6. 18:19String intern optimization
  7. 21:13Runtime integration
  8. 23:37Performance results
  9. 26:59Future challenges
  10. 27:59Q&A session
~/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.