- IPython Interactive Computing and Visualization Cookbook
- Cyrille Rossant
- 136字
- 2021-08-05 17:57:28
Introduction
Although Python is generally known (a bit unfairly) as a slow language, it is possible to achieve very good performance with the right methods. This is the objective of this chapter and the next. This chapter describes how to evaluate (profile) what makes a program slow, and how this information can be used to optimize the code and make it more efficient. The next chapter will deal with more advanced high-performance computing methods that should only be tackled when the methods described here are not sufficient.
The recipes of this chapter are organized into three parts:
- Time and memory profiling: Evaluating the performance of code
- NumPy optimization: Using NumPy more efficiently, particularly with large arrays
- Memory mapping with arrays: Implementing memory mapping techniques for out-of-core computations on huge arrays, notably with the HDF5 file format
推薦閱讀
- Mastering OpenCV Android Application Programming
- LabVIEW入門與實戰(zhàn)開發(fā)100例
- Java EE框架整合開發(fā)入門到實戰(zhàn):Spring+Spring MVC+MyBatis(微課版)
- PyTorch自然語言處理入門與實戰(zhàn)
- C語言程序設計立體化案例教程
- Python 3網(wǎng)絡爬蟲實戰(zhàn)
- GeoServer Beginner's Guide(Second Edition)
- Getting Started with Python Data Analysis
- Node.js全程實例
- Create React App 2 Quick Start Guide
- Scala Reactive Programming
- Creating Stunning Dashboards with QlikView
- HoloLens與混合現(xiàn)實開發(fā)
- .NET Standard 2.0 Cookbook
- Learning Nessus for Penetration Testing