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

QS60Style could save a little RAM with simple optimization

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.6.1
    • 4.6.0
    • GUI: Look'n'Feel
    • None
    • a0ce8bba1aae7c1aaf189b83bfe83eb6b80bf0bf

    Description

      Currently QS60Style stores all supported layouts and their pixel metrics to RAM with a lookup table.

      As there are 10 layouts and 96 pixel metrics, this takes some RAM (each pixel metric value is short integer).

      We could however, save half of this, since "mirrored" layouts are almost the same as regular ones - only two pixel metrics are different and we could handle
      this inside QS60Style::pixelMetric function.

      This would save 5*96*16bits of RAM (a. 7,7 kB) within a Qt application with QS60Style active.

      Attachments

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

        Activity

          People

            samimeri Sami Merila (Inactive)
            samimeri Sami Merila (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes