Category

所有分类

聚焦同一技术主题下的文章,方便按方向连续阅读。

518 篇文章
10 当前页
In-depth analysis of C#Millions of Object Serialization: How to achieve the perfect balance between speed and volume in network transmission

In-depth analysis of C#Millions of Object Serialization: How to achieve the perfect balance between speed and volume in network transmission

In network communication, data serialization is the process of transforming the state of an object into a storable or transportable form, which is particularly critical for TCP network transmission. In the project, when it is necessary to process the transmission of hundreds of thousands of pieces of data, the traditional JSON serialization method results in a huge binary package and inefficient serialization and deserialization due to its redundant field names and string formats. To solve these problems, we consider adopting more efficient serialization methods to reduce packet size and increase processing speed.

沙漠尽头的狼 12/11/2023 10:29 PM
Upgrade. NET Core 3.1 to. NET 8

Upgrade. NET Core 3.1 to. NET 8

NET Core 3.1 has been in use for a long time. In fact, Microsoft will no longer provide support at the end of 2022. The later LTS version. NET 6 will also expire support in November 2024, so upgrading directly to. NET 8 is the best choice.

不止dotNET 12/8/2023 5:27 AM
NET8 officially released, new changes in C #12

NET8 officially released, new changes in C #12

Although 8 has brought many enhancements, such as artificial intelligence, cloud native, performance, native AOT, etc., I am still most concerned about the C#language and some framework-level changes. Here are some new features in C#12 and the framework that I think are more practical.

不止dotNET 11/17/2023 5:36 PM
C#Array Deletion Cheats: Quick Deletion Tips reveal to make your code more efficient!

C#Array Deletion Cheats: Quick Deletion Tips reveal to make your code more efficient!

When it comes to deleting elements in a C#array, you may encounter two common methods: regular deletes and swap deletes (quick deletes). Normal deletes require traversing the array and moving elements, while swap deletes delete by swapping element positions. This article describes the time complexity of these two methods and provides sample code to demonstrate their use. By learning these quick removal techniques, you will be able to optimize your code to make it more efficient. Let's reveal these tips together to make your code better!

沙漠尽头的狼 11/11/2023 6:11 PM
Deep understanding of C#bit operations: mastering the magic use of bit operators

Deep understanding of C#bit operations: mastering the magic use of bit operators

C#bit arithmetic is a powerful tool that can play an important role in processing binary data and bit operations. By using bit operators, we can perform bit-level operations on integers, such as bit AND, bit OR, bit XOR, and bit negation. Bit operations can be used to optimize performance, compress data, implement bit masks and bit flags, etc. Understanding and mastering the basic principles and common application scenarios of C#bit operations will allow us to process binary data more efficiently and in some cases improve the performance and readability of the code. By deeply understanding C#bit operations, we can exercise greater creativity and flexibility in programming.

沙漠尽头的狼 11/6/2023 11:15 PM