- Python High Performance(Second Edition)
- Gabriele Lanaro
- 123字
- 2021-07-09 21:01:54
Summary
In this chapter, we introduced the basic principles of optimization and applied those principles to a test application. When optimizing, the first thing to do is test and identify the bottlenecks in the application. We saw how to write and time a benchmark using the time Unix command, the Python timeit module, and the full-fledged pytest-benchmark package. We learned how to profile our application using cProfile, line_profiler, and memory_profiler, and how to analyze and navigate the profiling data graphically with KCachegrind.
In the next chapter, we will explore how to improve performance using algorithms and data structures available in the Python standard library. We will cover scaling, sample usage of several data structures, and learn techniques such as caching and memoization.
- Django開發從入門到實踐
- 跟老齊學Python:輕松入門
- Object-Oriented JavaScript(Second Edition)
- 編譯系統透視:圖解編譯原理
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(高級進階篇)
- 深入淺出PostgreSQL
- INSTANT Passbook App Development for iOS How-to
- Windows內核編程
- 微信小程序開發與實戰(微課版)
- Clean Code in C#
- Python網絡爬蟲技術與應用
- 深入解析Java編譯器:源碼剖析與實例詳解
- R語言數據挖掘:實用項目解析
- Android Studio開發實戰:從零基礎到App上線 (移動開發叢書)
- Clojure Web Development Essentials