Audiobook description
Master Python techniques and libraries to reduce run times, efficiently handle huge datasets, and optimize execution for complex machine learning applications.Fast Python is a toolbox of techniques for high performance Python including:
- Writing efficient pure-Python code
- Optimizing the NumPy and pandas libraries
- Rewriting critical code in Cython
- Designing persistent data structures
- Tailoring code for different architectures
- Implementing Python GPU computing
Fast Python is your guide to optimizing every part of your Python-based data analysis process, from the pure Python code you write to managing the resources of modern hardware and GPUs. You'll learn to rewrite inefficient data structures, improve underperforming code with multithreading, and simplify your datasets without sacrificing accuracy.
Written for experienced practitioners, this book dives right into practical solutions for improving computation and storage efficiency. You'll experiment with fun and interesting examples such as rewriting games in Cython and implementing a MapReduce framework from scratch. Finally, you'll go deep into Python GPU computing and learn how modern hardware has rehabilitated some former antipatterns and made counterintuitive ideas the most efficient way of working.
About the Technology
Face it. Slow code will kill a big data project. Fast pure-Python code, optimized libraries, and fully utilized multiprocessor hardware are the price of entry for machine learning and large-scale data analysis. What you need are reliable solutions that respond faster to computing requirements while using less resources, and saving money.
About the Book
Fast Python is a toolbox of techniques for speeding up Python, with an emphasis on big data applications. Following the clear examples and precisely articulated details, you’ll learn how to use common libraries like NumPy and pandas in more performant ways and transform data for efficient storage and I/O. More importantly, Fast Python takes a holistic approach to performance, so you’ll see how to optimize the whole system, from code to architecture_._
What's Inside
- Rewriting critical code in Cython
- Designing persistent data structures
- Tailoring code for different architectures
- Implementing Python GPU computing
About the Reader
For intermediate Python programmers familiar with the basics of concurrency.
About the Author
Tiago Antao is one of the co-authors of Biopython, a major bioinformatics package written in Python.
Quotes
A great resource for learning how to create performant Python code.
- Or Golan, Qedma Quantum Computing
If you think Python is too slow, this book is for you! Parallelization. Vectorization. Using Cython and Numba to compile to C. Putting code onto a GPU to massively parallelize it. Buy a copy for every data scientist in your org.
- James Liu, Mediaocean
The time you invest reading this book will be repaid multifold in your project’s design and the performance you’ll gain.
- Ruud Gijsen, Simbeyond
Table of contents
- Part 1. Foundational Approaches
- Chapter 1. An urgent need for efficiency in data processing
- Chapter 2. Extracting maximum performance from built-in features
- Chapter 3. Concurrency, parallelism, and asynchronous processing
- Chapter 4. High-performance NumPy
- Part 2. Hardware
- Chapter 5. Re-implementing critical code with Cython
- Chapter 6. Memory hierarchy, storage, and networking
- Part 3. Applications and Libraries for Modern Data Processing
- Chapter 7. High-performance pandas and Apache Arrow
- Chapter 8. 8 Storing big data
- Part 4. Advanced Topics
- Chapter 9. Data analysis using GPU computing
- Chapter 10. Analyzing big data with Dask
- Appendix A. Setting up the environment
- Appendix B. Using Numba to generate efficient low-level code
Product information
- Title: Fast Python
- Author(s):
- Release date: June 2023
- Publisher(s): Manning Publications
- ISBN: None
You might also like
book
Fast Python
Master Python techniques and libraries to reduce run times, efficiently handle huge datasets, and optimize execution …
book
Robust Python
Does it seem like your Python projects are getting bigger and bigger? Are you feeling the …
book
Object-Oriented Python
Object-Oriented Python (OOP) is a paradigm that combines data and code into cohesive units, allowing you …
book
Python Workout
The only way to master a skill is to practice. In Python Workout, author Reuven M. …