<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Richard,<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 11 Oct 2016, at 15:11, <a href="mailto:richard.gildea@diamond.ac.uk" class="">richard.gildea@diamond.ac.uk</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: LucidaSans; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shared_plain&lt;double&gt; result(a.begin(), a.end());</span><br style="font-family: LucidaSans; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote></div><br class=""></div><div class="">eventually, that results in calling std::uninitialized_copy. This has a significant overhead compared to std::copy which could be used here for simple types such as integers and doubles, probably resulting in another big boost. This could be done with hairy template specialisations I guess but not sure it’s worth the sweat!!</div><div class=""><br class=""></div></body></html>