High Performance Python: Practical Performant Programming for Humans
暫譯: 高效能 Python:人類的實用效能編程

Gorelick, Micha, Ozsvald, Ian

  • 出版商: O'Reilly
  • 出版日期: 2025-06-03
  • 售價: $2,310
  • 貴賓價: 9.5$2,195
  • 語言: 英文
  • 頁數: 521
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1098165969
  • ISBN-13: 9781098165963
  • 相關分類: Python程式語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

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 clusters? Or build a system that scales up and down without losing reliability? Authors Micha Gorelick and Ian Ozsvald reveal concrete solutions to many issues and include war stories from companies that use high-performance Python for social media analytics, 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
  • Deploy code faster using tools like Docker

商品描述(中文翻譯)

您的 Python 代碼可能運行正常,但如果您需要它運行得更快呢?這本實用的書籍將教您如何定位性能瓶頸,並在高數據量的程序中顯著加速您的代碼。通過解釋設計選擇背後的基本理論,這本擴展版的《高效能 Python》幫助經驗豐富的 Python 程式設計師更深入地理解 Python 的實現。

您如何利用多核心架構或叢集?或者構建一個在不失去可靠性的情況下能夠擴展和縮減的系統?作者 Micha Gorelick 和 Ian Ozsvald 揭示了許多問題的具體解決方案,並包括了使用高效能 Python 進行社交媒體分析、產品化機器學習等公司的實戰故事。

- 更好地掌握 NumPy、Cython 和分析工具
- 學習 Python 如何抽象底層計算機架構
- 使用分析工具查找 CPU 時間和內存使用的瓶頸
- 通過選擇適當的數據結構來編寫高效的程序
- 加速矩陣和向量計算
- 使用 pandas、Dask 和 Polars 快速處理 DataFrames
- 加速您的神經網絡和 GPU 計算
- 使用工具將 Python 編譯為機器碼
- 同時管理多個 I/O 和計算操作
- 將多進程代碼轉換為在本地或遠程叢集上運行
- 使用 Docker 等工具更快地部署代碼