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

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
主站蜘蛛池模板: 五河县| 平陆县| 自治县| 屏边| 南漳县| 宜兴市| 留坝县| 当涂县| 宜都市| 鄂托克旗| 海丰县| 牡丹江市| 桂平市| 克拉玛依市| 巩留县| 嘉善县| 兴国县| 溆浦县| 治多县| 密云县| 开原市| 开原市| 安乡县| 石渠县| 福贡县| 小金县| 饶平县| 温州市| 铁岭县| 永德县| 巴东县| 乌拉特中旗| 明水县| 敦煌市| 延津县| 鄂尔多斯市| 彭泽县| 孟津县| 苗栗市| 永安市| 泸水县|