This article is a mirror article of machine translation, please click here to jump to the original article.

View: 5975|Reply: 1

[Source] RecyclableMemoryStream provides high-performance .NET streaming

[Copy link]
Posted on 5/29/2022 1:34:09 PM | | |
The Bing team has released Microsoft.IO.RecyclableMemoryStream for high-performance .NET streams: Microsoft/Microsoft.IO.RecyclableMemoryStream

GitHub address:The hyperlink login is visible.

This library package is. NET MemoryStream alternative, which provides an object pool to improve the performance of the application, optimized in the following aspects:

1. Eliminates Heap allocation for large objects with pooled buffering
2. Fewer GCs, shorter pauses per GC
3. Memory leakage is avoided through a fixed-size object pool
4. Avoid memory fragmentation
5. Provides excellent debuggability
6. Provide performance tracking measurement

Code Case:


Original:The hyperlink login is visible.




Previous:【Tip】Development essential, check the dotnet source code
Next:[Turn]. .NET Performance Optimization - Collections.Pooled is recommended
Posted on 5/29/2022 5:16:26 PM |
Learn to learn
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com