[Development] Regarding qmlcachegen and qml bytecode compression
Ulf Hermann
ulf.hermann at qt.io
Fri Apr 11 09:06:46 CEST 2025
> My question is that, does `qmlcachegen` compress the bytecode before it
> is embedded in the generated C++ source file? If not, is there a plan to
> do that or a reason not to do that?
The byte code is not compressed. If it was, we couldn't mmap() it in
straight from the file (which can be paged back to disk by the OS on
inactivity) but instead would have to spend additional memory to hold
the uncompressed byte code. Doing so is considered more expensive than
the binary size footprint of the uncompressed code.
best,
Ulf
More information about the Development
mailing list