<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>fuqiuluo’s blog</title>
        <link>http://blog.xinrao.moe/</link>
        <description>记录美好生活</description>
        <lastBuildDate>Sat, 02 May 2026 15:10:58 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2026, fuqiuluo</copyright>
        <item>
            <title><![CDATA[Pbandk和Kotlinx Protobuf的性能测试]]></title>
            <link>http://blog.xinrao.moe/article/pbandk-vs-kotlinx</link>
            <guid>http://blog.xinrao.moe/article/pbandk-vs-kotlinx</guid>
            <pubDate>Wed, 07 Feb 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[Comparison performance testing between Pbandk and Kotlinx Protobuf]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-3542c64d9f7980249d19c0f38ad3e270"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-3542c64d9f79809a957feb4ec8b431a3"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">This article is a comparison of the performance of the serialization and deserialization of the same data using the Pbandk library and the kotlinx-protobuf library.</div></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3542c64d9f79807ebf2ccd3b8fdb7146" data-id="3542c64d9f79807ebf2ccd3b8fdb7146"><span><div id="3542c64d9f79807ebf2ccd3b8fdb7146" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3542c64d9f79807ebf2ccd3b8fdb7146" title="📝 源代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">📝 源代码</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3542c64d9f79807d841cefbbc049c857" data-id="3542c64d9f79807d841cefbbc049c857"><span><div id="3542c64d9f79807d841cefbbc049c857" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3542c64d9f79807d841cefbbc049c857" title="🤗 测试结果"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">🤗 测试结果</span></span></h2><div class="notion-text notion-block-3542c64d9f7980cc8344f7e90aba67f6">The kotlinx-protobuf library is faster than the Pbandk library in serialization and deserialization.</div><div class="notion-text notion-block-3542c64d9f7980d28278fa34e9d6509f">Moreover, pbandk&#x27;s support for various types of kotlin is not friendly, and it belongs to a garbage project written by kotlin.</div><div class="notion-text notion-block-3542c64d9f7980448b0ed61818805790">I found a lot of use of this garbage serialization library in Tencent&#x27;s <code class="notion-inline-code">kuikly</code> project. kotlinx protobuf does not provide the function of one click conversion from proto to kotlin <code class="notion-inline-code">data class</code>.</div><div class="notion-text notion-block-3542c64d9f7980399a6bd3a0b669a2d1">I guess Tencent&#x27;s so-called programmers used this ugly, high-performance, and extremely high garbage proto serialization framework to save effort.</div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>