You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "NightOwl888 (via GitHub)" <gi...@apache.org> on 2026/04/23 09:26:03 UTC
[I] Replace `LinkedHashSet` with `OrderedHashSet` [lucenenet]
NightOwl888 opened a new issue, #1272:
URL: https://github.com/apache/lucenenet/issues/1272
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Task description
[J2N 2.2.0-alpha-0042](https://github.com/NightOwl888/J2N/releases/tag/v2.2.0-alpha-0042) added an `OrderedHashSet<T>` that is very similar to the backport of the .NET 9 `OrderedDictionary<TKey, TValue>` class, which is a more efficient implementation than J2N's `LinkedHashSet<T>`. It should be a drop-in replacement, but there may be some minor fixup work to do to map to the new API.
The task is to swap all usage of `LinkedHashSet<T>` with `OrderedHashSet<T>` and to ensure that all tests pass.
Please use the alias `J2N.OrderedHashSet<T>` in case Microsoft adds support for this in the future.
Each place where we swap in the new implementation should have the following comment:
```c#
// LUCENENET specific: OrderedHashSet<T> is a replacement for LinkedHashSet<E> in the JDK
```
While optional, there is a related issue here: https://github.com/NightOwl888/ICU4N/issues/126
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Replace `LinkedHashSet` with `OrderedHashSet` [lucenenet]
Posted by "paulirwin (via GitHub)" <gi...@apache.org>.
paulirwin closed issue #1272: Replace `LinkedHashSet<T>` with `OrderedHashSet<T>`
URL: https://github.com/apache/lucenenet/issues/1272
--
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