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

Use a Trie in all our handcoded serializers to speed up deserialization

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0
    • Affects Version/s: 1.9
    • Component/s: Serialization
    • None
    • None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      Currently only BsonClassMapSerializer uses a Trie to speed up deserialization (by replacing element name UTF8 decoding/dictionary lookup with a single fast Trie lookup).

      All our serializers should use a Trie.

      Create a centralized place that encapsulates all of the following standard behavior:

      1. Setting up a Trie for fast element name decoding
      2. Looping over elements in a document during deserialization using the Trie
      3. Support out of order elements
      4. Standardize handling of invalid and missing elements

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

              Created:
              Updated:
              Resolved: