diff --git a/Program.cs b/Program.cs index 6833148..fbc6863 100644 --- a/Program.cs +++ b/Program.cs @@ -694,6 +694,9 @@ internal static class Compiler lock (CompilerCache.CachedPrograms) { + // this number is derived very scientifically, on our sample program, this gives us about a kilobyte of IL + // for each function that we output into our function-of-functions that we eventually evaluate, + // and the JIT generally seems quite a lot happier to deal with smaller functions int maximumInstructionsPerChunk = 32; Stopwatch totalSw = Stopwatch.StartNew();