High Performance Python: Practical Performant Programming for Humans
Author: Micha Gorelick (Author), Ian Ozsvald (Author)
Publisher finelybook 出版社: O’Reilly Media
Publication Date 出版日期: 2025-06-03
Edition 版本: 3rd
Language 语言: English
Print Length 页数: 521 pages
ISBN-10: 1098165969
ISBN-13: 9781098165963
Book Description
Your Python code may run correctly, but what if you need it to run faster? This practical book shows you how to locate performance bottlenecks and significantly speed up your code in high-data-volume programs. By explaining the fundamental theory behind design choices, this expanded edition of High Performance Python helps experienced Python programmers gain a deeper understanding of Python’s implementation.
How do you take advantage of multicore architectures or compilation? Or build a system that scales up beyond RAM limits or with a GPU? Authors Micha Gorelick and Ian Ozsvald reveal concrete solutions to many issues and include war stories from companies that use high-performance Python for GenAI data extraction, productionized machine learning, and more.
- Get a better grasp of NumPy, Cython, and profilers
- Learn how Python abstracts the underlying computer architecture
- Use profiling to find bottlenecks in CPU time and memory usage
- Write efficient programs by choosing appropriate data structures
- Speed up matrix and vector computations
- Process DataFrames quickly with Pandas, Dask, and Polars
- Speed up your neural networks and GPU computations
- Use tools to compile Python down to machine code
- Manage multiple I/O and computational operations concurrently
- Convert multiprocessing code to run on local or remote clusters
About the Author
Ian Ozsvald is a chief data Scientist and coach. He co-organizes the annual PyDataLondon conference with 700+ attendees and the associated 15,000+ member monthly meetup. He runs the established Mor Consulting data science consultancy in London and gives conference talks internationally, often as keynote speaker. He has 26 years of experience as a senior data science leader, trainer, and team coach. Noting the absence of advice for senior leaders he established the RebelAI data science leadership community in 2023, having helped many clients at a strategic level since 2015. For fun, he’s walked by his high-energy Springer
Spaniel, surfs the Cornish coast, and drinks fine coffee. Past talks and articles can be found at https://ianozsvald.com.