未验证 提交 ee23aef2 编写于 作者: J Jonathon Marolf 提交者: GitHub

Merge pull request #46060 from jmarolf/bugfix/change-100-to-500

bump to 500
......@@ -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<FileKey, Metadata> _metadataCache =
new ConcurrentLruCache<FileKey, Metadata>(CacheSize);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册