<div dir="ltr">yes, object allocation is the heavy part.<br><br><div>But with a single recycled reference, objects are freed immediatly, I think it's easier gor GC.</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 12, 2015 at 9:59 AM Jean-Baptiste Kempf <<a href="mailto:jb@videolan.org">jb@videolan.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 12 Jun, Geoffrey Métais wrote :<br>
> Yes the last part.<br>
><br>
> You can, but I found it cleaner to declare the reference before the loop,<br>
> and reuse it for each iteration.<br>
> Not a big deal imho<br>
<br>
Yeah, but I'd love to know which one is the best, though.<br>
Because the new is inside the loop, no?<br>
<br>
With my kindest regards,<br>
<br>
--<br>
Jean-Baptiste Kempf<br>
<a href="http://www.jbkempf.com/" rel="noreferrer" target="_blank">http://www.jbkempf.com/</a> - +33 672 704 734<br>
Sent from my Electronic Device<br>
_______________________________________________<br>
Android mailing list<br>
<a href="mailto:Android@videolan.org" target="_blank">Android@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/android" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/android</a><br>
</blockquote></div>