Python High Performance Programming

0
(0)

Python High Performance Programming
 

  • Author:Gabriele Lanaro
  • Length: 108 pages
  • Edition: 1
  • Publisher: Packt Publishing
  • Publication Date: 2013-12-23
  • ISBN-10: 1783288450
  • ISBN-13: 9781783288458
  • Sales Rank: #2213800 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Boost the performance of your Python programs using advanced techniques

    Overview

    • Identify the bottlenecks in your applications and solve them using the best profiling techniques
    • Write efficient numerical code in NumPy and Cython
    • Adapt your programs to run on multiple processors with parallel programming

    In Detail

    Python is a programming language with a vibrant community known for its simplicity, code readability, and expressiveness. The massive selection of third party libraries make it suitable for a wide range of applications. This also allows programmers to express concepts in fewer lines of code than would be possible in similar languages. The availability of high quality numerically-focused tools has made Python an excellent choice for high performance computing. The speed of applications comes down to how well the code is written. Poorly written code means poorly performing applications, which means unsatisfied customers.

    This book is an example-oriented guide to the techniques used to dramatically improve the performance of your Python programs. It will teach optimization techniques by using pure python tricks, high performance libraries, and the python-C integration. The book will also include a section on how to write and run parallel code.

    This book will teach you how to take any program and make it run much faster. You will learn state-of the art techniques by applying them to practical examples. This book will also guide you through different profiling tools which will help you identify performance issues in your program. You will learn how to speed up your numerical code using NumPy and Cython. The book will also introduce you to parallel programming so you can take advantage of modern multi-core processors.

    This is the perfect guide to help you achieve the best possible performance in your Python applications.

    What you will learn from this book

    • Assess the performance of your programs using benchmarks
    • Spot the bottlenecks in your code using the Python profiling tools
    • Speed up your code by replacing Python loops with NumPy
    • Boost NumPy performance using the numexpr compiler
    • Use Cython to reach performance on par with the C language
    • Write code for multiple processors
    • Profile, optimize, and rewrite an application from start to finish

    Approach

    An exciting, easy-to-follow guide illustrating the techniques to boost the performance of Python code, and their applications with plenty of hands-on examples.

    Who this book is written for

    If you are a programmer who likes the power and simplicity of Python and would like to use this language for performance-critical applications, this book is ideal for you. All that is required is a basic knowledge of the Python programming language. The book will cover basic and advanced topics so will be great for you whether you are a new or a seasoned Python developer.

    Table of Contents

    Chapter 1: Benchmarking and Profiling
    Chapter 2: Fast Array Operations with NumPy
    Chapter 3: C Performance with Cython
    Chapter 4: Parallel Processing

    中文:

    书名:Python High Performance Programming

    使用高级技术提升您的Python程序的性能

    Overview

    • 找出应用程序中的瓶颈,并使用最佳的性能分析技术解决它们
    • 用NumPy和Cython编写高效的数值代码
    • 通过并行编程使您的程序能够在多个处理器上运行

    详细地说

    Python是一种编程语言,拥有一个以其简单性、代码可读性和表现力而闻名的充满活力的社区。大量的第三方库选择使其适用于广泛的应用程序。这还允许程序员用比类似语言更少的代码行来表达概念。高质量的专注于数值计算的工具的可用性使Python成为高性能计算的极佳选择。应用程序的速度归根结底取决于代码编写的好坏。写得不好的代码意味着性能不佳的应用程序,这意味着客户不满意。

    这本书是一本面向示例的指南,介绍了用于显著提高您的Python程序性能的技术。它将通过使用纯Python技巧、高性能库和Python-C集成来教授优化技术。这本书还将包括一个关于如何编写和运行并行代码的部分。

    这本书将教你如何使用任何程序并使其运行得更快。你将通过将它们应用到实际例子中来学习最先进的技术。这本书还将指导您使用不同的分析工具,这些工具将帮助您识别程序中的性能问题。您将学习如何使用NumPy和Cython加速您的数字代码。本书还将向您介绍并行编程,以便您能够利用现代多核处理器的优势。

    这是帮助您在您的Python应用程序中实现最佳性能的完美指南。

    你将从这本书中学到什么

    • Assess the performance of your programs using benchmarks
    • 使用Python性能分析工具找出代码中的瓶颈
    • Speed up your code by replacing Python loops with NumPy
    • Boost NumPy performance using the numexpr compiler
    • 使用Cython以达到与C语言相同的性能
    • 为多处理器编写代码
    • 自始至终分析、优化和重写应用程序

    Approach

    这是一本激动人心的、简单易懂的指南,通过大量实际操作的示例说明了提高Python代码性能的技术及其应用。

    这本书是为谁写的

    如果您是一名喜欢Python的强大和简单性的程序员,并且希望将这种语言用于性能关键型应用程序,那么本书是您的理想之选。所需要的只是对Python编程语言的基本知识。这本书将涵盖基本和高级主题,因此无论您是新手还是经验丰富的Python开发人员,这本书都会非常适合您。

    目录表

    第1章:基准测试和评测
    第2章:使用NumPy进行快速阵列操作
    第3章:使用Cython的C语言性能
    第4章:并行处理

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册