内容简介

Cython can yield massive performance improvements over pure Python—speedups of 3000X are easily attainable for certain patterns. With this book, Kurt Smith shows you how to use Cython to easily wrap C and C++ libraries in Python, handling all the details of memory management for you. By removing the barrier between Python and C, Cython harnesses the best of both languages while remaining familiar and comfortable to Python users.

Cython has proven its usefulness in many foundational projects: Pandas, SymPy, Sage, and dozens of others, both open and closed source. You'll learn how Cython is an essential part of any performance-oriented Python programmer’s arsenal.


Kurt Smith has been using Python in scientific computing ever since his college days, looking for any opportunity to incorporate it into his computational physics classes. He has contributed to the Cython project as part of the 2009 Google Summer of Code, implementing the initial version of typed memoryviews and native cython arrays. He uses Cython extensively in his consulting...

下载地址

豆瓣评论

  • setns
    特别有条理, 甚至还有习题章, 虽然我对性能部分并不关心, 但是写得太流畅导致一口气读了下去. 读完后产生了一种 "pyelf 性能有救了" 和 "以后所有项目都直接用 Cython 吧" 的想法...2022-01-31
  • hey man
    很好的一本书,解除了我对python c/c++扩展的各种疑惑,改天找个项目试试。2019-01-21
  • 屋子里就我一个
    介绍的很清楚 对新人很友好 顺便复习了一下C的语法2020-02-22

猜你喜欢

大家都喜欢