diff options
author | Tim Henning <tim.henning@kdab.com> | 2019-05-28 10:47:47 +0200 |
---|---|---|
committer | tim.henning <tim.henning@kdab.com> | 2019-05-28 09:06:57 +0000 |
commit | d25c7ea137e4b9d562bc91127df69a6f91e47cff (patch) | |
tree | e68e22f480cd7d6be826010d9741cbf58adf2914 /src/plugins/cpptools/cppheadersource_test.cpp | |
parent | effbd54ae2c0d7ea7fcbb6d69cbb6599ebcc90a5 (diff) | |
download | qt-creator-d25c7ea137e4b9d562bc91127df69a6f91e47cff.tar.gz |
Tracing: Improve event adding performance by using at() instead of []
This speeds up adding events using Timeline::TimelineModel::insert()
by 20% in release mode and reduces it to a third in debug mode by
avoiding a check whether the container is detached.
Change-Id: I3c81120047c33b3ce20cfb4cd309cbe17694b141
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppheadersource_test.cpp')
0 files changed, 0 insertions, 0 deletions