Blog

Technical Articles

This section contains site articles covering .NET, desktop development, engineering practice, and general development topics.

First Visit

New User Starting Route

Random Exploration

Random Discovery

Random Discovery

In-depth Analysis of Serialization of Millions of C# Objects: How to Achieve the Perfect Balance Between Speed and Size in Network Transmission

In network communication, data serialization is the process of converting an object's state into a form that can be stored or transmitted, which is particularly critical for TCP network transmission. In projects, when dealing with the transmission of hundreds of thousands of data items, traditional JSON serialization, due to its redundant field names and string format, leads to large binary packet sizes and inefficient serialization and deserialization. To address these issues, we consider adopting more efficient serialization methods to reduce packet size and improve processing speed.

.NET
Random Discovery

Dapper in .NET Core

The detailed explanation of what Dapper is is omitted here; this article only provides a brief explanation of using Dapper in .NET Core. The code presented is mainly for examples, serving as an introduction. Developers can extend and adjust according to their own needs.

Dapper