06 2022 档案

摘要:文章参考自微软官方文档 地址:https://docs.microsoft.com/zh-cn/dotnet/standard/garbage-collection/workstation-server-gc GC回收模式的区别 工作站模式: 1、GC回收的线程等级与运行的NET程序的线程等级一致, 阅读全文
posted @ 2022-06-27 17:10 塔斯丁狗 阅读(122) 评论(0) 推荐(0)
摘要:文章参考自微软官方文档 地址:https://docs.microsoft.com/zh-cn/dotnet/standard/serialization/system-text-json-configure-options?pivots=dotnet-6-0 测试代码 1 using System 阅读全文
posted @ 2022-06-27 15:55 塔斯丁狗 阅读(655) 评论(0) 推荐(0)
摘要:测试代码: const int loopNum = 1 * 100000; var str1 = ""; var str2 = ""; var str3 = ""; var sw = new System.Diagnostics.Stopwatch(); // 1、ToString() 耗时 Tes 阅读全文
posted @ 2022-06-22 12:03 塔斯丁狗 阅读(297) 评论(0) 推荐(0)
摘要:原作者:吕毅 参考地址:https://blog.walterlv.com/post/create-delegate-to-improve-reflection-performance.html 文章内容提炼 1、其实当小数据量情况下,性能损失其实可以忽略不计。 文章内是以10000000循环来测试 阅读全文
posted @ 2022-06-14 15:32 塔斯丁狗 阅读(101) 评论(0) 推荐(0)