Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QEdidParser: optimize the hardcoded EDID vendor table
Instead of using an array of fixed-length strings for the vendor names, use qOffsetStringArray instead. This removes the need of using the longest vendor name length as the size of the fixed-length strings, which results in a massive waste of space. This saves 150KB of (readonly) data. Details: there are 2555 entries, each one hardcoded to be 78 byte long, for a total of 199290 bytes. However the vendor names themselves amount only to 50658 bytes. Making all this data optional on desktop Linux (where the vendor data is present anyhow on the system, in /usr/share/) is left for a future change. Change-Id: I17007865e741e3dab15dd2ab2feffbce4664fb37 Reviewed-by: Volker Hilsheimer <[email protected]>
- Loading branch information