Call reserve before the std::transform calls
Reviewers: dfaure
Reviewed By: dfaure
Differential Revision: https://phabricator.kde.org/D6305