Use reserve on the result container in algorithm::map, if possible