- IPython Interactive Computing and Visualization Cookbook(Second Edition)
- Cyrille Rossant
- 133字
- 2021-07-02 16:23:35
Introduction
Although Python is not generally considered one of the fastest language (which is somewhat unfair), it is possible to achieve excellent performance with the appropriate 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 your 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
推薦閱讀
- 數據庫基礎教程(SQL Server平臺)
- Python絕技:運用Python成為頂級數據工程師
- 大數據可視化
- iOS and OS X Network Programming Cookbook
- OracleDBA實戰攻略:運維管理、診斷優化、高可用與最佳實踐
- 數亦有道:Python數據科學指南
- Python數據分析與數據化運營
- 編寫有效用例
- 新手學會計(2013-2014實戰升級版)
- R Object-oriented Programming
- MySQL技術內幕:InnoDB存儲引擎
- SQL Server 2008寶典(第2版)
- 中國云存儲發展報告
- Cognitive Computing with IBM Watson
- 掌中寶:電腦綜合應用技巧