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 #501: Factored out Lucene.Net.Support.ListExtensions::SubList() in favor of J2N's GetView() methods
Date Sat, 24 Jul 2021 10:29:00 GMT

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


   This replaces the partially implemented `SubList` functionality that was in `Lucene.Net.Support.ListExtensions`
with a full implementation that has an optimized enumerator and correctly throws exceptions
from all members if an ancestor list is modified.
   
   There were also several unnecessary allocations removed due to calls to `List<T>.GetRange()`
which copies the elements instead of creating a view over the same elements.


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

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



Mime
View raw message