diff options
Diffstat (limited to 'src/applist.cpp')
-rw-r--r-- | src/applist.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/applist.cpp b/src/applist.cpp index 13e677c..06c1d86 100644 --- a/src/applist.cpp +++ b/src/applist.cpp @@ -22,14 +22,17 @@ using std::shared_ptr; using std::string; using std::vector; +const static int kReserveReqSize = 10; +const static int kReserveCLSize = 100; + namespace wm { AppList::AppList() - : req_list(0), - app2client(0), - current_req(1) + : current_req(1) { + req_list.reserve(kReserveReqSize); + app2client.reserve(kReserveCLSize); } void AppList::addClient(const string &appid, const string &role) |