Replace instances of new UTF8Encoding(false, true) with static singletons

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 1.10, 2.0
    • Affects Version/s: 1.9.2
    • Component/s: None
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      Doing some memory profiling revealed a significant number of allocations of UTF8Encoding instances. While these eventually get garbage collected they take up a significant amount of space in the interim. It looks like the BsonTrie<TValue> class has already done this. I would recommend doing it across the board.

            Assignee:
            Robert Stam
            Reporter:
            Joe Enzminger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: