This commit is contained in:
mischa 2023-06-20 11:32:24 +08:00 committed by mischa
parent 74bbd295d5
commit 8cb58d73e8

View File

@ -36,7 +36,7 @@ class ILPostProcessorAssemblyResolver : IAssemblyResolver
// Resolve() calls FindFile() every time. // Resolve() calls FindFile() every time.
// thousands of times for String => mscorlib alone in large projects. // thousands of times for String => mscorlib alone in large projects.
// cache the results! ILPostProcessor is multithreaded, so use a ConcurrentDictionary here. // cache the results! ILPostProcessor is multithreaded, so use a ConcurrentDictionary here.
private readonly ConcurrentDictionary<string, string> fileCache = readonly ConcurrentDictionary<string, string> fileCache =
new ConcurrentDictionary<string, string>(); new ConcurrentDictionary<string, string>();
readonly ICompiledAssembly compiledAssembly; readonly ICompiledAssembly compiledAssembly;