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

Summary

Algorithmic optimization can improve how your application scales as we process increasingly large data. In this chapter, we demonstrated use-cases and running times of the most common data structures available in Python, such as lists, deques, dictionaries, heaps, and tries. We also covered caching, a technique that can be used to trade some space, in memory or on-disk, in exchange for increased responsiveness of an application. We also demonstrated how to get modest speed gains by replacing for-loops with fast constructs, such as list comprehensions and generator expressions.

In the subsequent chapters, we will learn how to improve performance further using numerical libraries such as numpy, and how to write extension modules in a lower-level language with the help of Cython.

主站蜘蛛池模板: 徐水县| 红桥区| 清涧县| 保山市| 昭苏县| 二手房| 开平市| 左权县| 栾川县| 台江县| 武邑县| 北票市| 巩义市| 马尔康县| 乌拉特后旗| 江油市| 杭锦后旗| 东宁县| 惠来县| 民乐县| 扶余县| 宜春市| 洞头县| 广丰县| 郓城县| 宝丰县| 枞阳县| 集贤县| 康平县| 汾阳市| 乐都县| 鄂州市| 黄冈市| 沅陵县| 东明县| 策勒县| 宜城市| 陇南市| 铜鼓县| 琼结县| 泗阳县|