<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Profiling on Chen Kai Blog</title><link>https://www.chenk.top/en/tags/profiling/</link><description>Recent content in Profiling on Chen Kai Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 27 Apr 2022 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/en/tags/profiling/index.xml" rel="self" type="application/rss+xml"/><item><title>Python Engineering (8): Performance — Profiling, Caching, and Knowing When to Stop</title><link>https://www.chenk.top/en/python-engineering/08-performance-and-profiling/</link><pubDate>Wed, 27 Apr 2022 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/python-engineering/08-performance-and-profiling/</guid><description>&lt;p>Donald Knuth&amp;rsquo;s famous quote is often half-remembered. The full version is: &amp;ldquo;We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%.&amp;rdquo; The second sentence is the key. Performance work isn&amp;rsquo;t about making everything fast; it&amp;rsquo;s about finding the 3% that matters and making that fast.&lt;/p>
&lt;p>This article is about finding that 3%. You&amp;rsquo;ll learn to profile first, optimize second, and measure the impact of each change.&lt;/p></description></item></channel></rss>