You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2021/04/07 21:57:25 UTC

[GitHub] [lucenenet] NightOwl888 opened a new pull request #465: PERFORMANCE: Lucene.Net.IndexWriter.ReaderPool: Fixed deleting while iterating to reduce allocations

NightOwl888 opened a new pull request #465:
URL: https://github.com/apache/lucenenet/pull/465


   Swapped in `ConcurrentDictionary<TKey, TValue>` instead of `Dictionary<TKey, TValue>` to take advantage of the fact [`ConcurrentDictionary<TKey, TValue>` supports deleting while iterating](https://docs.microsoft.com/en-us/dotnet/api/system.collections.concurrent.concurrentdictionary-2.getenumerator?redirectedfrom=MSDN&view=net-5.0#remarks). Also added conditional support to use a non-concurrent `Dictionary<TKey, TValue>` if/when we add a target for .NET Core/.NET 5/.NET 6.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [lucenenet] NightOwl888 merged pull request #465: PERFORMANCE: Lucene.Net.IndexWriter.ReaderPool: Fixed deleting while iterating to reduce allocations

Posted by GitBox <gi...@apache.org>.
NightOwl888 merged pull request #465:
URL: https://github.com/apache/lucenenet/pull/465


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org