Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-446

Partial deserialization

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.3
    • None
    • None

    Description

      There are some use cases where you might have a fair amount of serialized data coming to you, but you're only interested in specific fields from that data. The way it works now, you are stuck paying the price to deserialize that extra data no matter what.

      In the simplest approach, it would be nice if you could specify some sort of mask to use to suppress the deserialization of a given set of fields. A slightly more complex approach would be to not just skip the deserialization, but to actually hang on to the bytes that you didn't deserialize, so that when it came time to re-serialize, you could just rewrite the original data.

      Obviously this would imply some interesting interactions with the validation system and probably nontrivial changes elsewhere (isset, protocol interface, etc). However, it could yield a big performance benefit in specific applications.

      Attachments

        1. Thrift-446-v4.patch
          5 kB
          Mohammad Shahangian
        2. thrift-446-v5.patch
          7 kB
          Bryan Duxbury
        3. Thrift-446-v6.patch
          7 kB
          Mohammad Shahangian

        Activity

          People

            mohammad.shahangian Mohammad Shahangian
            bryanduxbury Bryan Duxbury
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: