<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Rohit,<br>
<br>
Could that same operation be affected by any optimisation?<br>
<br>
Perhaps change the integer for each of the 10,000 ops.<br>
<br>
I'm not sure but I've been caught out before with such things.<br>
<br>
Cheers<br>
<br>
Gary<br>
<br>
<br>
<div class="moz-cite-prefix">On 15/08/2022 6:00 pm, Rohit Gupta
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c647acae-2dff-4fe7-a819-b42e96a33bac@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<div style="font-family:sans-serif"> <span dir="ltr"
style="margin-top:0; margin-bottom:0;">Just put it in a loop
of 10k and time it.</span> <br>
<br>
<span dir="ltr" style="margin-top:0; margin-bottom:0;">But
honestly, does it really matter?</span> <br>
</div>
<div><span dir="ltr" style="margin-top:0; margin-bottom:0;">Regards</span>
<br>
<span dir="ltr" style="margin-top:0; margin-bottom:0;">Rohit</span>
<br>
</div>
<div><br>
<div>
<p>15/08/2022 17:34:14 Ross Levis
<a class="moz-txt-link-rfc2396E" href="mailto:ross@stationplaylist.com"><ross@stationplaylist.com></a>:</p>
</div>
<blockquote link="blue" vlink="purple"
style="margin:0;border-left:3px solid #ccc; padding-left:10px"
lang="EN-NZ">
<div class="WordSection1" style="page: WordSection1">
<p class="MsoNormal" style=" font-size: 11pt; font-family:
"Calibri", "sans-serif""><span
style="color:#1F497D;font-size:12.0pt">Var Total:
Integer;</span></p>
<p class="MsoNormal" style=" font-size: 11pt; font-family:
"Calibri", "sans-serif""><span
style="color:#1F497D;font-size:12.0pt"></span></p>
<p class="MsoNormal" style=" font-size: 11pt; font-family:
"Calibri", "sans-serif""><span
style="color:#1F497D;font-size:12.0pt">If I want to test
2 or 3 values of an integer, I often use</span></p>
<p class="MsoNormal" style=" font-size: 11pt; font-family:
"Calibri", "sans-serif""><span
style="color:#1F497D;font-size:12.0pt"></span></p>
<p class="MsoNormal" style=" font-size: 11pt; font-family:
"Calibri", "sans-serif""><b><span
style="color:#1F497D;font-size:12.0pt">if Total in
[4,6] then ...</span></b></p>
<p class="MsoNormal" style=" font-size: 11pt; font-family:
"Calibri", "sans-serif""><span
style="color:#1F497D;font-size:12.0pt"></span></p>
<p class="MsoNormal" style=" font-size: 11pt; font-family:
"Calibri", "sans-serif""><span
style="color:#1F497D;font-size:12.0pt">But is that more
or less efficient for the CPU/ASM coding than</span></p>
<p class="MsoNormal" style=" font-size: 11pt; font-family:
"Calibri", "sans-serif""><span
style="color:#1F497D;font-size:12.0pt"></span></p>
<p class="MsoNormal" style=" font-size: 11pt; font-family:
"Calibri", "sans-serif""><b><span
style="color:#1F497D;font-size:12.0pt">if (Total = 4)
or (Total = 6) then ...</span></b></p>
<p class="MsoNormal" style=" font-size: 11pt; font-family:
"Calibri", "sans-serif""><span
style="color:#1F497D;font-size:12.0pt"></span></p>
<p class="MsoNormal" style=" font-size: 11pt; font-family:
"Calibri", "sans-serif""><span
style="color:#1F497D;font-size:12.0pt">I’m not sure how
to find out myself.</span></p>
</div>
</blockquote>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe</pre>
</blockquote>
<br>
</body>
</html>