High Performance Python (2nd Edition)
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已掌握 Python 基础语法,想系统学习性能调优方法的中级开发者
- 从事数据分析、科学计算、机器学习,苦于 Python 脚本运行太慢的从业者
- 需要处理大规模数据或高并发 I/O 的后端与数据工程师
- 希望理解 CPython 内部机制、对字节码与内存模型感兴趣的程序员
Not a good fit for
- 完全零基础、还没写过完整 Python 程序的初学者
- 只想找几条“一行代码提速”速成技巧、不愿动手剖析的人
- 主要使用 PyPy 或 C 扩展生态、对 CPython 调优需求极低的读者
Reading tips
- 第1、2章务必细读并动手跑剖析示例,掌握“先测量后优化”的流程,这是全书的地基
- 按问题类型跳跃阅读:CPU 密集型重点看第3至7章,I/O 与并发看第8至10章,内存吃紧看第11章
- 把书中的朱利亚集合案例自己实现一遍,每读完一章就复现对应提速手段并记录耗时对比
- 在自己的项目中挑一个真实慢函数做练习,优化前后都留存剖析报告,避免过早优化
About the publisher
Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.
Contents
- Preface
- Chapter 1 Understanding High-Performance Python
- Chapter 2 Finding Bottlenecks Through Profiling
- Chapter 3 Lists and Tuples
- Chapter 4 Dictionaries and Sets
- Chapter 5 Iterators and Generators
- Chapter 6 Matrix and Vector Computation
- Chapter 7 Compiling to C
- Chapter 8 Asynchronous I/O
- Chapter 9 The multiprocessing Module
- Chapter 10 Clusters and Job Queues
- Chapter 11 Reducing Memory Usage
- Chapter 12 Practical Lessons Learned
FAQ
这本书适合零基础学 Python 的人吗?
第一版和第二版有什么区别?
书里的代码需要什么环境?
读完能立刻让我的程序快十倍吗?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.