diff options
| author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-02-08 14:13:51 +0300 |
|---|---|---|
| committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-02-15 12:40:08 +0000 |
| commit | 0668d08b879aa7ddb7fde8a17811fc806000671b (patch) | |
| tree | 7cfea73ab6e14173b46bc1fbad430eeee258026b /src/corelib/json/qjsonobject.cpp | |
| parent | ab8cc8387f1891ccf99721bfe5a6182c507e332f (diff) | |
QHttpNetworkConnectionPrivate: de-duplicate calls in if-else chains
... and loops.
Every QNetworkConfiguration::bearerType() call produces lock/unlock of mutex.
Fix: cache result.
Every QHttpNetworkRequest::contentLength() call contains internal loop.
Fix: cache result.
Also cache results of QNonContiguousByteDevice::size() and
QHostAddress::protocol().
Change-Id: I01124648b1972f480905433d9b3551c2246e1bde
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/json/qjsonobject.cpp')
0 files changed, 0 insertions, 0 deletions
