diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2023-11-13 19:53:18 -0800 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-11-28 03:14:03 -0800 |
| commit | b2d24044c2b001851b5aa88d92a0d5de57f25210 (patch) | |
| tree | 2fc32b8965d9acf6bc5a5687746ed13e47aae0f2 /src/widgets/doc/snippets/widgetdelegate.cpp | |
| parent | 878e3342e1c9bd8a4da6a2e9e1508dacbe0c7ab6 (diff) | |
QFactoryLoader: use the new UTF-8 QCborStreamReader API for performance
That way we don't need to decode to QString in order to compare to
"Keys". There's no avoiding the conversion to it when inserting in the
map for top-level elements, but use of moc's -M option is extremely
rare.
Ideally, we'd simply ask QCborStreamReader to perform a comparison to a
string of ours, so we didn't have to memcpy from the stream in the first
place. But TinyCBOR has no API for that (it's been pending as
https://github.com/intel/tinycbor/issues/223 for a while).
Change-Id: I8bd6bb457b9c42218247fffd1797607f75b153f4
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
