摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tas 阅读全文
摘要:
[MemoryDiagnoser] public class DMesh3ScenarioBenchmark { private const int N = 2_000_000; // 模拟大规模几何操作 private Random rand = new Random(); [Benchmark] 阅读全文
摘要:
class PointCollectSink : CallbackBase,SimplifiedGeometrySink { public class GlyphContour { public List<RawVector2> Points = new List<RawVector2>(); pu 阅读全文
摘要:
一般情况,C#数组仅支持2GB大小,对于int[]来讲,大概就是:2*1024*1024*1024/4=530870912,但实际上 比这个数值略小。 int bb = 536870897; while (true) { bb++; try { int[] aa = new int[bb]; } c 阅读全文