官术网_书友最值得收藏!

Chapter 4. Profiling and Optimization

In this chapter, we will cover the following topics:

  • Evaluating the time taken by a command in IPython
  • Profiling your code easily with cProfile and IPython
  • Profiling your code line-by-line with line_profiler
  • Profiling the memory usage of your code with memory_profiler
  • Understanding the internals of NumPy to avoid unnecessary array copying
  • Using stride tricks with NumPy
  • Implementing an efficient rolling average algorithm with stride tricks
  • Processing large NumPy arrays with memory mapping
  • Manipulating large arrays with HDF5
主站蜘蛛池模板: 铁岭县| 霍林郭勒市| 民丰县| 仪征市| 永新县| 满洲里市| 师宗县| 岢岚县| 鹤峰县| 福建省| 广河县| 封开县| 大石桥市| 华蓥市| 台安县| 平武县| 呼和浩特市| 鄱阳县| 苗栗市| 虎林市| 四会市| 澎湖县| 即墨市| 怀集县| 内黄县| 荆门市| 兴文县| 县级市| 鄂托克前旗| 平遥县| 明水县| 库伦旗| 马鞍山市| 吕梁市| 莫力| 略阳县| 定结县| 衡水市| 涞水县| 尼勒克县| 呼和浩特市|