Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
We've already fixed the really low-hanging fruit in
- https://codereview.qt-project.org/c/qt/qtbase/+/394586 and
- https://codereview.qt-project.org/c/qt/qtbase/+/394651
which, between them, already reclaimed almost a whole memory page.
During review, further reduction potential was identified:
- 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)
- store FP data in float or fixed-point, not qreal (= double) (same problem)
- 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
- 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
Gerrit Reviews
For Gerrit Dashboard: QTBUG-100803 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
394618,4 | QPageSize: pack StandardPageSize struct | dev | qt/qtbase | Status: DEFERRED | 0 | 0 |