Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127178

QProtobufSerializer deserialization performance issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7, 6.8.0 Beta2
    • Protocol Buffers
    • None
    • All

    Description

      I have a protobuf structure with over 100 fields.

      When using the raw protoc tool to generate the .cc and .h files, and using the ParseFromArray function, it takes about 600ms to deserialize a total of 150k elements from a byte array.

      However, it takes much longer when I switch to using Qt's built-in protobuf plugin. With QProtobufSerializer, it takes more than 2 seconds to deserialize only 10k elements.

      I'm wondering if this behavior is by design or if I'm misusing the code, causing the performance issue.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-127178
          # Subject Branch Project Status CR V

          Activity

            People

              tatiana.borisova Tatiana Borisova
              photonlili Li Xu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change