01 2025 档案

该文被密码保护。
posted @ 2025-01-30 02:35 惊惊 阅读(0) 评论(0) 推荐(0) 编辑
摘要:结构体委托 为什么结构体委托能内联? 静态确定性: Multiplier.Invoke 的代码在编译时完全确定 值类型特性: JIT 可为结构体方法生成特化代码 无虚表开销: 直接调用而非间接跳转 可以节省时间,更有效地触发内联, 100万次是40ms和9ms,加速了4倍,见资料其实是5-6倍 发现 阅读全文
posted @ 2025-01-28 21:51 惊惊 阅读(14) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2025-01-28 01:49 惊惊 阅读(7) 评论(0) 推荐(0) 编辑
摘要:基础 众所周知,我们很经常找到一个目标,然后中断搜索, 传统方式: var array = int[] { 1,5,6,3,2,8,9,6,5,4 }; var target = 8; int i; for(i = 0; i < array.Length; i++) { if (array[i] = 阅读全文
posted @ 2025-01-23 16:34 惊惊 阅读(49) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2025-01-22 17:00 惊惊 阅读(4) 评论(0) 推荐(0) 编辑
摘要:案例250119 private static List<string>? GetPrintList(DBTrans tr, SelectionSet ss) { List<string> printLines = []; foreach (var id in ss.GetObjectIds()) 阅读全文
posted @ 2025-01-18 20:49 惊惊 阅读(20) 评论(0) 推荐(0) 编辑
摘要:原有连接 1,扫描线算法 https://www.cnblogs.com/JJBox/p/12571436.html 2,扫描线代码 https://www.cnblogs.com/JJBox/p/18652906.html 3,扫描线辅助类 https://www.cnblogs.com/JJBo 阅读全文
posted @ 2025-01-17 18:35 惊惊 阅读(90) 评论(0) 推荐(0) 编辑
摘要:public class TestCommand { [CommandMethod(nameof(CurveBoundDemo))] public void CurveBoundDemo() { using DBTrans tr = new(); var pl = Env.Editor.Select 阅读全文
posted @ 2025-01-17 17:22 惊惊 阅读(148) 评论(0) 推荐(0) 编辑
摘要:原有链接 1,扫描线算法 https://www.cnblogs.com/JJBox/p/12571436.html 2,扫描线代码 https://www.cnblogs.com/JJBox/p/18652906.html 3,扫描线辅助类 https://www.cnblogs.com/JJBo 阅读全文
posted @ 2025-01-05 01:55 惊惊 阅读(399) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示