Look up conventions without taking the exclusive lock in ConventionRegistryInstance

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • 4.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      ConventionRegistryInstance.Lookup acquires the exclusive _lock on every read, even though conventions are read far more often than registered. This adds contention on a hot serialization path.

      Make reads lock-free, for example back the conventions with a concurrent collection, or a copy-on-write plain array (swap in a new copy on registration) so lookups don't lock.

            Assignee:
            Unassigned
            Reporter:
            Ferdinando Papale
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: