lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucenenet] NightOwl888 opened a new pull request #465: PERFORMANCE: Lucene.Net.IndexWriter.ReaderPool: Fixed deleting while iterating to reduce allocations
Date Wed, 07 Apr 2021 21:57:25 GMT

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



Mime
View raw message