diff options
author | 2018-06-13 09:36:58 +0900 | |
---|---|---|
committer | 2018-06-13 09:36:58 +0900 | |
commit | cfcac41c81325ded349489ec5cfc24bdaa56d405 (patch) | |
tree | dd9c534a1618093d817981c6f1d0b0c964bb2024 | |
parent | 314ed7419472933fd3aa7a71e6df9d4ea294e9c3 (diff) |
Reserve the size for container
Change-Id: I6b7cbd5e450273695055e11ec4bdc6e6caeba7de
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r-- | src/applist.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/applist.cpp b/src/applist.cpp index 77f1b2b..365c485 100644 --- a/src/applist.cpp +++ b/src/applist.cpp @@ -25,11 +25,16 @@ using std::vector; namespace wm { +const static int kReserveClientSize = 100; +const static int kReserveReqSize = 10; + AppList::AppList() - : req_list(0), - app2client(0), + : req_list(), + app2client(), current_req(1) { + app2client.reserve(kReserveClientSize); + req_list.reserve(kReserveReqSize); } AppList::~AppList() {} |