12-13-2025, 07:21 PM
Need some work, but I don't have enough motivation.
For C# code that does not change frequently, create and use a dll instead. A cache feature would do it automatically. For C# code that changes frequently, caching does not make much sense.
`Compile` is slow the first time in a script, because of JIT-compiling the compiler itself (the codeanalysis dlls). To warm up, call `Compile` earlier in the script, with any C# code.
In next LA will be possible to make the startup faster 2 times, eg 700 ms -> 350 ms. Next LA will use .NET 10. Its C# compiler dlls from the SDK start faster. Will need just to change the first line (dll paths).
For C# code that does not change frequently, create and use a dll instead. A cache feature would do it automatically. For C# code that changes frequently, caching does not make much sense.
`Compile` is slow the first time in a script, because of JIT-compiling the compiler itself (the codeanalysis dlls). To warm up, call `Compile` earlier in the script, with any C# code.
In next LA will be possible to make the startup faster 2 times, eg 700 ms -> 350 ms. Next LA will use .NET 10. Its C# compiler dlls from the SDK start faster. Will need just to change the first line (dll paths).
