- 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++編程:從入門到實踐
- 自己動手寫Java虛擬機
- Magento 2 Development Cookbook
- Production Ready OpenStack:Recipes for Successful Environments
- C程序設計案例教程
- iOS開發實戰:從入門到上架App Store(第2版) (移動開發叢書)
- ElasticSearch Cookbook(Second Edition)
- Zabbix Performance Tuning
- Mastering Android Studio 3
- 百萬在線:大型游戲服務端開發
- C# 7.0本質論
- Python高性能編程(第2版)
- Build Your Own PaaS with Docker
- C語言從入門到精通(第5版)
- Oracle API Management 12c Implementation