<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Header-Only on Text Matrix</title><link>https://txtmix.com/tags/header-only/</link><description>Recent content in Header-Only on Text Matrix</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 21 Jul 2026 20:06:14 +0800</lastBuildDate><atom:link href="https://txtmix.com/tags/header-only/index.xml" rel="self" type="application/rss+xml"/><item><title>spdlog 深度拆解:29K stars 的 C++ header-only 日志库如何做到 30M msg/sec</title><link>https://txtmix.com/posts/tech/gabime-spdlog-fast-cpp-logging-library-guide/</link><pubDate>Sun, 12 Jul 2026 02:58:14 +0800</pubDate><guid>https://txtmix.com/posts/tech/gabime-spdlog-fast-cpp-logging-library-guide/</guid><description>&lt;h1 id="spdlog-深度拆解29k-stars-的-c-header-only-日志库如何做到-30m-msgsec">spdlog 深度拆解:29K stars 的 C++ header-only 日志库如何做到 30M msg/sec&lt;/h1>
&lt;h2 id="核心判断">核心判断&lt;/h2>
&lt;p>spdlog 是 C++ 生态的事实标准日志库,29K+ stars 来自一个清晰的定位:&lt;strong>Header-only、零依赖(可选 fmt)、纳秒级延迟&lt;/strong>。在游戏服务器、高频交易、低延迟系统等场景下,日志库的写入速度直接决定吞吐量——spdlog 通过异步模式 + 预格式化 + 内存池,把日志写入从「阻塞业务」变成「旁路观测」。&lt;/p></description></item></channel></rss>