Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2456

Use less memory without scope capturing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Backlog
    • Minor - P4
    • Resolution: Unresolved
    • 2.7.2
    • None
    • Json, Performance
    • None
    • Any, its about C# driver doing same, but faster :)
    • Fully Compatible

    Description

      JsonWriter.EscapedString implementation uses anonymous function that touches instance private method - forces compiler to capture scope with 'this' for each =\

      We can switch from .All LINQ to hand written method to avoid object allocation each time method called (super-often).

      Thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nik Nikolay Mitikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: