diff --git a/src/Compilers/Server/VBCSCompiler/MetadataCache.cs b/src/Compilers/Server/VBCSCompiler/MetadataCache.cs index 7fd960ff2f81c57d0ae3d990c39f7b456459e01f..c32cb9c81b65827a7f26ad656ba8e773797464bc 100644 --- a/src/Compilers/Server/VBCSCompiler/MetadataCache.cs +++ b/src/Compilers/Server/VBCSCompiler/MetadataCache.cs @@ -15,8 +15,8 @@ namespace Microsoft.CodeAnalysis.CompilerServer { internal class MetadataAndSymbolCache { - // Store 100 entries -- arbitrary number - private const int CacheSize = 100; + // Store 500 entries -- Out of ~8.7M projects, only about 4,000 had more than 500 references + private const int CacheSize = 500; private readonly ConcurrentLruCache _metadataCache = new ConcurrentLruCache(CacheSize);