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

Optimize output of BSON arrays by caching index names

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.0
    • 1.9.2
    • BSON
    • None

    Description

      Currently when BSON arrays are output the names of the indexes (as required by the BSON spec) are computed by calling Int32.ToString and then encoding the string to UTF8.

      It should be considerably faster to cache the UTF8 values of commonly used index names (say the first 1000 or so).

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: