
Python High Performance Programming.
Title:
Python High Performance Programming.
Author:
Lanaro, Gabriele.
ISBN:
9781783288465
Personal Author:
Physical Description:
1 online resource (123 pages)
Contents:
Python High Performance Programming -- Table of Contents -- Python High Performance Programming -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Benchmarking and Profiling -- Designing your application -- Writing tests and benchmarks -- Timing your benchmark -- Finding bottlenecks with cProfile -- Profile line by line with line_profiler -- Optimizing our code -- The dis module -- Profiling memory usage with memory_profiler -- Performance tuning tips for pure Python code -- Summary -- 2. Fast Array Operations with NumPy -- Getting started with NumPy -- Creating arrays -- Accessing arrays -- Broadcasting -- Mathematical operations -- Calculating the Norm -- Rewriting the particle simulator in NumPy -- Reaching optimal performance with numexpr -- Summary -- 3. C Performance with Cython -- Compiling Cython extensions -- Adding static types -- Variables -- Functions -- Classes -- Sharing declarations -- Working with arrays -- C arrays and pointers -- NumPy arrays -- Typed memoryviews -- Particle simulator in Cython -- Profiling Cython -- Summary -- 4. Parallel Processing -- Introduction to parallel programming -- The multiprocessing module -- The Process and Pool classes -- Monte Carlo approximation of pi -- Synchronization and locks -- IPython parallel -- Direct interface -- Task-based interface -- Parallel Cython with OpenMP -- Summary -- Index.
Abstract:
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.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.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Genre:
Electronic Access:
Click to View