<div dir="ltr">Thanks a lot for the quick fix, Juan!<div><br></div><div>Running the same experiment, #asLowercase now takes about 0.7% (36ms instead of 8s) with the new update.</div><div>This is fantastic!</div><div><br></div><div>Cheers,</div><div>Nico PM</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 19, 2023 at 10:24 PM Juan Vuletich <<a href="mailto:juan@cuis.st">juan@cuis.st</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"><u></u>
<div bgcolor="#ffffff">
Hi Nico,<br>
<br>
Thanks for reporting. Just pushed two updates that should improve
the situation.<br>
<br>
Cheers,<br>
<br>
On 6/18/2023 4:40 PM, Nicolás Papagna Maldonado via Cuis-dev wrote:
<blockquote type="cite">
<div dir="ltr">Hi folks!
<div><br>
</div>
<div>I'm working on a tool to index source code to perform
faster searches.</div>
<div>While profiling the code that builds the index, I noticed
that about 60% of the time spent is in <font face="monospace">UnicodeString>>#asLowercase</font>.</div>
<div><br>
</div>
<div>It takes about 60% too (8 seconds) of the time spent when
running the following experiment, too (see attached
screenshot)</div>
<div><br>
</div>
<div><font face="monospace">CompiledMethod allInstances<br>
do: [ :method | method sourceCode asLowercase ]<br>
displayingProgress: 'Indexing...'.</font></div>
<div><font face="monospace"><br>
</font></div>
<div>
<div>This experiment was run on <font face="monospace">Cuis6.0-5797.image.</font></div>
<div>VM version is:</div>
<div><font face="monospace">5.0 5.20220602.1410 Mac OS X built
on Jun 2 2022 15:55:29 UTC Compiler: Apple LLVM 12.0.0
(clang-1200.0.32.29) [Production Spur 64-bit x64 VM]<br>
CoInterpreter VMMaker.oscog-dtl.3185 uuid:
0e7f07b8-eed6-4362-b223-86c98594ddb9 Jun 2 2022<br>
StackToRegisterMappingCogit VMMaker.oscog-mt.3179 uuid:
c6fbcb07-2a19-ed4f-8b40-9c119a70882a Jun 2 2022<br>
VM: 202206021410
<a href="mailto:runner@Mac-1654183989075.local:work/opensmalltalk-vm/opensmalltalk-vm" target="_blank">runner@Mac-1654183989075.local:work/opensmalltalk-vm/opensmalltalk-vm</a><br>
Date: Thu Jun 2 16:10:44 2022 CommitHash: c9fd365<br>
Plugins: 202206021410
<a href="mailto:runner@Mac-1654183989075.local:work/opensmalltalk-vm/opensmalltalk-vm" target="_blank">runner@Mac-1654183989075.local:work/opensmalltalk-vm/opensmalltalk-vm</a></font><br>
</div>
<div><br>
</div>
<div>Is there any way to improve its performance?</div>
<div><br>
</div>
<div>Thanks in advance,</div>
<div>Nico PM</div>
</div>
</div>
</blockquote>
<br>
<br>
<pre cols="72">--
Juan Vuletich
<a href="http://cuis.st" target="_blank">cuis.st</a>
<a href="http://github.com/jvuletich" target="_blank">github.com/jvuletich</a>
<a href="http://researchgate.net/profile/Juan-Vuletich" target="_blank">researchgate.net/profile/Juan-Vuletich</a>
<a href="http://independent.academia.edu/JuanVuletich" target="_blank">independent.academia.edu/JuanVuletich</a>
<a href="http://patents.justia.com/inventor/juan-manuel-vuletich" target="_blank">patents.justia.com/inventor/juan-manuel-vuletich</a>
<a href="http://linkedin.com/in/juan-vuletich-75611b3" target="_blank">linkedin.com/in/juan-vuletich-75611b3</a>
<a href="http://twitter.com/JuanVuletich" target="_blank">twitter.com/JuanVuletich</a></pre>
</div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><br>Nicolás Papagna</div>