diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2020-04-25 17:58:03 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2020-04-29 22:31:25 +0000 |
commit | 68a20d69419671f28990052aca4c89a52ee78046 (patch) | |
tree | 7cffc31cf03399d1b18ef561aca5e75162149cc6 /header.COMM | |
parent | 0daed8dee82d29be1dbf39046b0d4a0814e08d08 (diff) |
QNetworkProxy: don't allocate when parsing [1/2]: loop body
Instead of manipulating a QByteArray, do it with a QLatin1String,
which is free. Also, don't prepend a dot to force matches at label
boundaries, check that there's a dot where the match occurred. Saves
two allocations per iteration. Finally, pull the query's
peerHostName() initialization out of the loop - it doesn't depend on
the loop variable.
Change-Id: I6dfdae711f0bd8941af69bfbcfda7873a40e4b80
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'header.COMM')
0 files changed, 0 insertions, 0 deletions