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

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
主站蜘蛛池模板: 疏附县| 庆阳市| 广德县| 淮阳县| 舞钢市| 绥滨县| 紫云| 象州县| 铁力市| 思茅市| 娱乐| 漳平市| 通化县| 平乐县| 武义县| 竹北市| 宁陕县| 九江县| 盈江县| 屏东县| 阿城市| 饶平县| 安岳县| 通化市| 洞头县| 湛江市| 临澧县| 岳阳县| 简阳市| 临高县| 江达县| 岳普湖县| 岗巴县| 姚安县| 崇左市| 芜湖市| 九台市| 兴隆县| 日土县| 南召县| 盘锦市|