<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Performance on Chen Kai Blog</title><link>https://www.chenk.top/zh/tags/performance/</link><description>Recent content in Performance on Chen Kai Blog</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Thu, 17 Jul 2025 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/zh/tags/performance/index.xml" rel="self" type="application/rss+xml"/><item><title>系统设计（四）：缓存——在哪里缓存、淘汰什么，以及缓存何时反而有害</title><link>https://www.chenk.top/zh/system-design/04-caching-strategies/</link><pubDate>Thu, 17 Jul 2025 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/system-design/04-caching-strategies/</guid><description>&lt;p>计算机科学中有个老笑话：最难的两个问题，是缓存失效（cache invalidation）、命名（naming things），以及 off-by-one 错误。这个笑话之所以成立，正是因为缓存失效确实极难处理。但与此同时，缓存又是提升系统性能最有效的单一技术——一个部署得当的缓存，可将延迟降低 100 倍，减少 90% 的数据库负载，并每月节省数千美元的基础设施成本。&lt;/p></description></item><item><title>数据库（二）：索引与查询规划——数据库如何找到你的数据</title><link>https://www.chenk.top/zh/databases/02-indexing-and-query-planning/</link><pubDate>Fri, 19 Apr 2024 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/databases/02-indexing-and-query-planning/</guid><description>&lt;p>在笔记本上查 1,000 行只需 2 毫秒的查询，到了生产环境面对 5,000 万行数据时，可能暴涨到 45 秒——除非你建对了索引。索引是数据库工具箱里对性能影响最大的单项优化；吃透它，会彻底改变你设计 Schema 和写 SQL 的方式。&lt;/p></description></item><item><title>Python 工程实践（八）：性能优化 —— 性能分析、缓存与适时收手</title><link>https://www.chenk.top/zh/python-engineering/08-performance-and-profiling/</link><pubDate>Wed, 27 Apr 2022 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/python-engineering/08-performance-and-profiling/</guid><description>&lt;p>Donald Knuth 那句广为流传的名言常被断章取义。完整原文是：“我们应当忽略微小的效率提升，比如 97% 的情况：过早优化是一切罪恶之源。然而，我们也不应放过那至关重要的 3% 中的良机。”后半句恰恰是重点所在——性能优化并非追求“一切皆快”，而是精准识别真正影响全局的那 3%，并集中资源将其优化。&lt;/p></description></item></channel></rss>