<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 29, 2014 at 1:09 PM, Ömer Sinan Ağacan <span dir="ltr"><<a href="mailto:omeragacan@gmail.com" target="_blank">omeragacan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br></div><div class="im">
> It isn't clear that<br>
> this will give an improvement in performance<br>
<br>
</div>Why is that? I think it's clear since I'm eliminating malloc calls.<br>
(though one may claim that malloc calls are so cheap it's not even<br>
measurable)<br></blockquote><div><br></div><div>(1) it's not really malloc since it's being garbage collected when out of scope</div><div><br></div><div>(2) given that there is a lot of allocation anyway and anything allocated as ephemerally as this use case is very common and very highly optimized, it's not really worth it</div>
<div><br></div></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div></div>