<div dir="ltr"><div>Sorry, I didn't notice you had fix it already. However there is still another bug, that can be seen only when JIT is disabled.</div><div><br></div><div><br></div><div>Jussi<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 4, 2020 at 7:58 PM Jussi Lahtinen <<a href="mailto:jussi.lahtinen@gmail.com">jussi.lahtinen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Current code fails in GambasTester. Could be due earlier bug.</div><div>I highly recommend to automatically run it after compilation. I know it's ugly as hell, but it does its job a lot better than nothing.</div><div><br></div><div>Jussi<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 4, 2020 at 5:32 PM Benoît Minisini <<a href="mailto:g4mba5@gmail.com" target="_blank">g4mba5@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
In the last commit, I implemented an optimization of a common usage <br>
pattern of the '&=' operator, where a string is actually used as an <br>
accumulation buffer.<br>
<br>
Look at the following code, where a global string is filled with <br>
arbitrary strings:<br>
<br>
Private $sBuffer As String<br>
<br>
Public Sub Main()<br>
<br>
   Dim I As Integer<br>
   Dim C As String<br>
   Dim J As Integer<br>
   Dim T As Float<br>
<br>
   T = Timer<br>
   For I = 1 To 10000<br>
     For J = 65 To 90<br>
       C = Chr$(J)<br>
       $sBuffer &= ".(" & C & ")"<br>
     Next<br>
   Next<br>
<br>
   Print Len($sBuffer);; Timer - T<br>
<br>
End<br>
<br>
Before the optimization, that code runs in about 6.64 seconds.<br>
<br>
After the optimization, it runs in 0.026 seconds. More than 250 times <br>
faster!<br>
<br>
Note that the optimization works only if the string buffer is a local or <br>
global variable.<br>
<br>
If you detect any problem or any crash with that optimization, tell me.<br>
<br>
Regards,<br>
<br>
-- <br>
Benoît Minisini<br>
<br>
----[ <a href="http://gambaswiki.org/wiki/doc/netiquette" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/doc/netiquette</a> ]----<br>
</blockquote></div>
</blockquote></div>