Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 intel/tinycbor#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>
- Loading branch information