diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2018-01-22 19:35:56 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2018-06-06 17:48:00 +0000 |
commit | 91e1356335d62a4cb251e879c0517f7dbafff40c (patch) | |
tree | bf2e086d1e57e9b7141c9ebe547de02c2193a695 /configure.pri | |
parent | adf50269e7d1cbe1511a3d52d189d02dda245e10 (diff) |
QCborStreamReader: use QByteArray directly if possible
QIODevice represents considreable overhead, even with just QBuffer, for
parsing simple things. Benchmarking showed it was spending 25% of the
parsing time inside one QIODevice function or another. So this commit
accomplishes two things:
1) it increases the buffer size from 9 bytes to up to 256, which should
reduce the number of calls into the QIODevice
2) if the source data is a QByteArray, then use it directly and bypass
the QIODevice, thus increasing performance considerably
Change-Id: I56b444f9d6274221a3b7fffd150c531c9d28e54b
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'configure.pri')
0 files changed, 0 insertions, 0 deletions