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

QPageSize's static data tables are too large

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: GUI: Printing
    • Labels:

      Description

      We've already fixed the really low-hanging fruit in

      which, between them, already reclaimed almost a whole memory page.

      During review, further reduction potential was identified:

      1. don't store sizes in pt, in, and mm, but only in one of them (todo: which?) and calculate the others on-demand (fails tests which expect exact numbers)
      2. store FP data in float or fixed-point, not qreal (= double) (same problem)
      3. adapt qOffsetStringTable so it can generate the string table separately, then we could move the const char[] member out of the struct and replace it with the quint16 offset copied from the offset table
      4. verify that the ID is numerically the same as the table index and don't store it in the struct

      This task was created so we don't forget about these ideas.

        Attachments

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

          Activity

            People

            Assignee:
            johnlayt John Layt
            Reporter:
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes