Tachyon, Python 3.15's Built-in Sampling Profiler - Talk Python to Me Ep. 565
Do you know what's actually slow in your Python app? Or are you guessing? Until now, profiling Python meant a tracing profiler that made your code 2 to 3 times slower. Or a third-party tool that broke with every new release. Python 3.15 fixes that. It ships Tachyon, a sampling profiler built into the standard library. It attaches to live production apps with almost zero overhead. My guests are Pablo Galindo Salgado, CPython core developer and Steering Council member, and László Kiss Kollár from Bloomberg's Python infrastructure team. Their first prototype ran at two samples a second. Now it does over a million hz. And it lands in Python 3.15 this October. ▬▬▬▬ About the podcast ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ This video is the uncut, live recording of the Talk Python To Me podcast ( https://talkpython.fm ). We cover Python-focused topics every week and publish the edited and polished version in audio form. Subscribe in your podcast player of choice (100% free) at https://talkpython.fm/subscribe. ▬▬▬▬ Guests ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ László Kiss Kollár Pablo Galindo Salgado ▬▬▬▬ Links and resources from the show ▬▬▬▬▬▬▬▬▬▬▬▬ 3.11: https://talkpython.fm/episodes/show/388/python-3.11-is-here-and-its-fast Memray: https://talkpython.fm/episodes/show/425/memray-the-endgame-python-memory-profiler PyStack: https://talkpython.fm/episodes/show/419/debugging-python-in-production-with-pystack profile and cProfile: https://docs.python.org/3/library/profile.html py-spy: https://github.com/benfred/py-spy Austin: https://github.com/P403n1x87/austin PEP 799: https://peps.python.org/pep-0799/ PEP 768: https://peps.python.org/pep-0768/ PyCon US 2026 talk: https://us.pycon.org/2026/schedule/presentation/31 The docs: https://docs.python.org/3.15/library/profiling.sampling.html Backport to 3.14: https://github.com/pythonbackport/python-profiling ▬▬▬▬ Dive deeper ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Listen to the Talk Python To Me podcast at https://talkpython.fm and explore over 275 hours of Python courses at https://training.talkpython.fm/courses. ▬▬▬▬ Follow us on Social ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Mastodon: Michael - https://fosstodon.org/@mkennedy & Talk Python - https://fosstodon.org/@talkpython Bluesky: Michael - https://bsky.app/profile/mkennedy.codes & Talk Python - https://bsky.app/profile/talkpython.fm X: Michael - https://x.com/mkennedy & Talk Python - https://x.com/talkpython