summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qsettings.cpp
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2015-07-02 10:55:02 +0300
committerAlex Trotsenko <alex1973tr@gmail.com>2015-08-27 14:42:37 +0000
commitc3d8ab78b8bc63cc15b56719fc7bf2ec42c800de (patch)
tree3dba35c39908272b63d26fecd732cc6f35d8c159 /src/corelib/io/qsettings.cpp
parent61ad604ad41607be97efea5a18cd4d9fb7ddca73 (diff)
QRingBuffer: avoid allocation in c'tor
Reduces creation time and memory consumption when the buffer is unused. Robin's benchmark: QBENCHMARK { QFile file(filename); } reports the following results (run with -median 10 -iterations 524288): before: 0.00028 msecs per iteration (total: 149, iterations: 524288) after: 0.00017 msecs per iteration (total: 93, iterations: 524288). Change-Id: Ied4e7caeca794b94260b8fc59b3ba656f4719c30 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/corelib/io/qsettings.cpp')
0 files changed, 0 insertions, 0 deletions