Optimize output of BSON arrays by caching index names

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.0
    • Affects Version/s: 1.9.2
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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).

            Assignee:
            Robert Stam
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: