- 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
推薦閱讀
- C# 7 and .NET Core Cookbook
- Python 深度學(xué)習
- Python Game Programming By Example
- Python Data Analysis(Second Edition)
- STM32F0實戰(zhàn):基于HAL庫開發(fā)
- C語言程序設(shè)計
- 面向?qū)ο蟪绦蛟O(shè)計(Java版)
- Cocos2d-x學(xué)習筆記:完全掌握Lua API與游戲項目開發(fā) (未來書庫)
- 編程可以很簡單
- 編程改變生活:用Python提升你的能力(進階篇·微課視頻版)
- Learning VMware vSphere
- Distributed Computing in Java 9
- SwiftUI極簡開發(fā)
- Getting Started with Electronic Projects
- Visual C++程序設(shè)計與項目實踐