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

QProtobufSerializer deserialization performance issue

XMLWordPrintable

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

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            photonlili Li Xu
            photonlili Li Xu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes