diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-05-31 08:34:41 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-05-31 08:34:48 +0200 |
commit | 7aac2285390ab4a92050c6a114ea3f12ea05b203 (patch) | |
tree | d4c152cb0f34fd7a78c38f77313eac177a1a2fdf /test/UnitTyping.cpp | |
parent | c522dbf6da67e25fdb00e71f71a8a6551f11b38f (diff) |
test: use reserve() before calling emplace_back() in a loop
Change-Id: Ieb754e9433cad9fc47c3449c1957702e493c7533
Diffstat (limited to 'test/UnitTyping.cpp')
-rw-r--r-- | test/UnitTyping.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/UnitTyping.cpp b/test/UnitTyping.cpp index cb884d95f..b9adcd7de 100644 --- a/test/UnitTyping.cpp +++ b/test/UnitTyping.cpp @@ -126,6 +126,7 @@ public: std::atomic<int> liveTyping(0); // First some rendering load + threads.reserve(numRender); for (int i = 0; i < numRender; ++i) threads.emplace_back([&,i] { std::mt19937 randDev(numRender * 257); |