<p>Am 01.04.2017 10:35 schrieb "Ryan Joseph" <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>>:<br>
><br>
><br>
> > On Apr 1, 2017, at 2:50 PM, Ryan Joseph <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>> wrote:<br>
> ><br>
> > Yeah, I was concerned with just compiler types or weakly retained classes where I’m just keeping the reference.<br>
><br>
> Another question. Is it more efficient/faster to reallocate a new array of the same size or call FillChar on the existing array?</p>
<p>I think that FillChar should be faster as reallocating would need setting the array to Nil and recreating it (SetLength with the same length won't touch the existing elements) thus loosing any gain of reallocate and then there'd still be the internal FillChar of the array.</p>
<p>Regards,<br>
Sven</p>