type
Post
status
Published
date
Feb 7, 2024
slug
pbandk-vs-kotlinx
summary
Comparison performance testing between Pbandk and Kotlinx Protobuf
tags
Kotlinx
Pbandk
Kotlin
category
技术分享
icon
password
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.
📝 源代码
🤗 测试结果
The kotlinx-protobuf library is faster than the Pbandk library in serialization and deserialization.
Moreover, pbandk's support for various types of kotlin is not friendly, and it belongs to a garbage project written by kotlin.
I found a lot of use of this garbage serialization library in Tencent's
kuikly project. kotlinx protobuf does not provide the function of one click conversion from proto to kotlin data class.I guess Tencent's so-called programmers used this ugly, high-performance, and extremely high garbage proto serialization framework to save effort.
