Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-636

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Important

    Description

      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<TKey, TValue> 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).

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            nightowl888 Shad Storhaug
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 8h
                8h
                Remaining:
                Remaining Estimate - 8h
                8h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment