Perf improvement of folly::Future's map()
Summary: folly::Future's map() functions create a std::vector<Future<...>>, then use push_back to populate that vector. This could result in reallocations. Avoid that by reserving proper space ahead of the push_backs. Reviewed By: yfeldblum Differential Revision: D9204713 fbshipit-source-id: 51d9154f483a47c6196a4d4d9d4af14e4eeab6e0
Showing
Please register or sign in to comment