summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/widgetdelegate.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2023-11-13 14:59:20 -0800
committerThiago Macieira <thiago.macieira@intel.com>2023-11-28 03:14:03 -0800
commit4a432a7617d9dd84cc66cd5cffc8469d34001eb9 (patch)
tree8df661f9048ab4d9f6d28b11f1b8b2aeb4474cd5 /src/widgets/doc/snippets/widgetdelegate.cpp
parent58fc33239e54ca429e41d0b5be8a1c6f917671e2 (diff)
QFactoryLoader::instance(): don't fully parse static plugins' data
Commit d9766ddc3d525cf08acec4c3483e61d86c9899a8 (Qt 5.12) replaced the use of the old binary JSON format with CBOR, which is more compact and standard, but requires actual parsing instead of just a quick size verification. For regular, loaded plugins, the metadata is stored in parsed QCborValue format, but for static plugins, we were re-parsing each staticplugin's metadata for every single call. This avoids a full parsing and only parses the CBOR header to find the IIDs (moc always outputs the IID first). Fixes: QTBUG-114253 Pick-to: 6.6 Change-Id: I8bd6bb457b9c42218247fffd179750ec6c9e3252 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/widgetdelegate.cpp')
0 files changed, 0 insertions, 0 deletions