<HTML>
<style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style>I figured so, although when I implemented such a pooled object, it unintentionally fixed a couple of memory leaks! Of course, it might just be a lazy workaround instead of putting in the missing "ReleaseUsedRegs" commands.<br>
<div><br>
</div><div>Gareth aka. Kit<br>
</div> <br>
<br>
<span style="font-weight: bold;">On Fri 28/12/18 17:41 , Florian Klämpfl florian@freepascal.org sent:<br>
</span><blockquote style="BORDER-LEFT: #F5F5F5 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">Am 15.12.2018 um 16:18 schrieb J. Gareth Moreton:
<br>
<span style="color: rgb(102, 102, 102);">> Ah right, so things like "TmpUsedRegs" (an array of TUsedRegs) constantly being created and destroyed in the peephole
</span><br>
<span style="color: rgb(102, 102, 102);">> optimizer is actually not that much of a penalty hit, and creating a pooled object for continuous use doesn't give that
</span><br>
<span style="color: rgb(102, 102, 102);">> much of a performance gain?
</span><br>
<br>
I do not expect so.
<br>
_______________________________________________
<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<br>
<a target="_blank" href="<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>"><span style="color: red;">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</span></a>
<br>
<br>
<br>
</blockquote></HTML>