LinqPad 6 First Execution Slow, Then Blazing Fast
I did some searching but did not find any previous discussion. Recently v6.9.15 x64 I've noticed dramatic time differences between first and subsequent execution of C# programs that do large amounts of I/O.
Let's say I perform a word search intersecting each of 10,000 large text files with an array of words (example only). No exotic NuGet packages. Just System.IO, System.Linq, etc
The first run will be noticeably slow, sometimes on the order of minutes. Second run will be ludicrously fast, order of single seconds (almost feels like all the results and text content were cached, and yet if the text files change, the results are live and correct).
I am sure there is some .net core caching or pre-compiling or optimization going on.
1) Can someone offer a brief explanation of what pre-compile work LinqPad is doing the first run?
2) Any configuration options to tinker with first response time? I remember in LinqPad 5 one could toggle 'shadow assembly references' in which references were copied to a temp folder, but I don't see that option for v6 anymore.
Thanks in advance.