<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>One thing I have been considering is to promote fields and global
variables to local registers to reduce memory accesses. However,
it would make multi-threaded code a bit trickier to write and
demand the use of the "volatile" intrinsic on things like the
conditions of while loops.</p>
<p>Before I start anything though, I need to put together a schedule
or a to-do list to work out what to play with first. A lot of the
time, I go by my whims and think "I fancy playing with the Free
Pascal Compiler today" or I see something and think 'I could
improve that' - unfortunately it's led me to mix fixes and changes
into the same patch, which has been problematic before, so I'm
trying to be more disciplined about it.<br>
</p>
<p>Gareth aka. Kit<br>
</p>
<div class="moz-cite-prefix">On 27/06/2019 11:07, Benito van der
Zander wrote:<br>
</div>
<blockquote type="cite"
cite="mid:4a0de3cd-3bf3-ccc7-82b3-3cbdc8a2bd13@benibela.de">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div id="smartTemplate4-template">Hi Gareth,<br>
</div>
<div><br>
</div>
<div>there are more optimizations to look at</div>
<div><br>
</div>
<div>An user could write custom string enumerators to replace such
assignments in loops and try to manually solve that issue.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>But then <br>
</div>
<div><br>
</div>
<div><a class="moz-txt-link-freetext"
href="https://bugs.freepascal.org/view.php?id=34915"
moz-do-not-send="true">https://bugs.freepascal.org/view.php?id=34915</a></div>
<div><br>
</div>
<div>the enumerators are stored in memory rather than registers,
so it is always slower than a normal loop</div>
<div><br>
</div>
<div><br>
</div>
<div>Or since you like case; a case of strings should use a
hashmap or something rather than doing one by one comparisons<br>
</div>
<div><br>
Cheers,<br>
Benito </div>
<br>
<div class="moz-cite-prefix">Am 27.06.19 um 09:27 schrieb J.
Gareth Moreton:<br>
</div>
<blockquote type="cite"
cite="mid:9ce24add-96ef-0713-6c10-2b275138266b@moreton-family.com"><a
class="moz-txt-link-freetext"
href="https://bugs.freepascal.org/view.php?id=35775"
moz-do-not-send="true">https://bugs.freepascal.org/view.php?id=35775</a>
<br>
<br>
I'm both honoured and amused! Thank you. <br>
<br>
Gareth aka. Kit <br>
<br>
<br>
--- <br>
This email has been checked for viruses by Avast antivirus
software. <br>
<a class="moz-txt-link-freetext"
href="https://www.avast.com/antivirus" moz-do-not-send="true">https://www.avast.com/antivirus</a>
<br>
<br>
_______________________________________________ <br>
fpc-devel maillist - <a class="moz-txt-link-abbreviated"
href="mailto:fpc-devel@lists.freepascal.org"
moz-do-not-send="true">fpc-devel@lists.freepascal.org</a> <br>
<a class="moz-txt-link-freetext"
href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel"
moz-do-not-send="true">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
<br>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-devel maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
</blockquote>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>