Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port ConditionalWeakTable from .NET Core 3.x to .NET Standard 2.0 #114

Open
bongohrtech opened this issue Dec 27, 2019 · 1 comment
Open

Comments

@bongohrtech
Copy link
Owner

As per LUCENENET-610, the WeakDictionary that has been created to support FieldCache and a few other Lucene.NET features does not perform well enough in highly concurrent environments.

The ConditionalWeakTable is a suitable replacement on .NET Standard 2.1, but on .NET Standard 2.0, it doesn't expose the enumerator or the AddOrUpdate method. All of Lucene.NET's usages require one or the other.

So, it would definitely be worth the effort to port the full implementation to .NET Standard 2.0.

This port should be added to J2N in the J2N.Runtime.CompilerServices namespace (to match .NET's namespace convention).

JIRA link - [LUCENENET-636] created by nightowl888
@bongohrtech
Copy link
Owner Author

bongohrtech commented May 5, 2020

Is related to: apacheGH-610

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant