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

Qt optimization suggestion: replace bundled zlib with SIMD optimized zlib-ng

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.9.2
    • Fix Version/s: None
    • Component/s: Core: Other
    • Labels:
      None

      Description

      Hi

      Now that coming 5.10 seems to include SIMD accelerated libjpeg-turbo  (https://bugreports.qt.io/browse/QTBUG-40091) maybe the default bundled zlib could be replaced with SIMD accelerated zlib-ng ?

      From: https://github.com/Dead2/zlib-ng.git

      On Linux building for X86/X86-64: 

      ./configure --prefix=/usr --libdir=/lib --zlib-compat && make && make install

      And for ARM the following (and maybe gcc flags: -march=armv8-a+crc -mfpu=neon-fp-armv8 ???) are needed:

      ./configure --prefix=/usr --libdir=/lib --zlib-compat --acle --neon && make && make install

      The QByteArray qcompress/uncompress functions need patching tought because they expect the uLong* (in vanilla zlib.h) while in the zlib-ng version of zlib.h they are size_t* for length arguments.

       

      Sorry, forgot in the hurry to change the "Type" field from Bug to Suggestion

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              cnn Qt Core & Network
              Reporter:
              crazythinker Stefan Fröberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes