<div dir="ltr"><div>Tried using <font face="monospace">findBinary:</font> in <font face="monospace">Character>>#iso8859s15CodeForUnicodeCodePoint:</font> but I've got the emergency evaluator. </div><div><br></div><div>It looks like we could use it to search for entries in <font face="monospace">UnicodeCodePoints</font>.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 18, 2023 at 5:42 PM Andres Valloud via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.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">It looks like roughly 40% of the time is going into linear search.<br>
<br>
On 6/18/23 12:40 PM, Nicolás Papagna Maldonado via Cuis-dev wrote:<br>
> Hi folks!<br>
> <br>
> I'm working on a tool to index source code to perform faster searches.<br>
> While profiling the code that builds the index, I noticed that about 60% <br>
> of the time spent is in UnicodeString>>#asLowercase.<br>
> <br>
> It takes about 60% too (8 seconds) of the time spent when running the <br>
> following experiment, too (see attached screenshot)<br>
> <br>
> CompiledMethod allInstances<br>
> do: [ :method | method sourceCode asLowercase ]<br>
> displayingProgress: 'Indexing...'.<br>
> <br>
> This experiment was run on Cuis6.0-5797.image.<br>
> VM version is:<br>
> 5.0 5.20220602.1410 Mac OS X built on Jun 2 2022 15:55:29 UTC Compiler: <br>
> Apple LLVM 12.0.0 (clang-1200.0.32.29) [Production Spur 64-bit x64 VM]<br>
> CoInterpreter VMMaker.oscog-dtl.3185 uuid: <br>
> 0e7f07b8-eed6-4362-b223-86c98594ddb9 Jun 2 2022<br>
> StackToRegisterMappingCogit VMMaker.oscog-mt.3179 uuid: <br>
> c6fbcb07-2a19-ed4f-8b40-9c119a70882a Jun 2 2022<br>
> VM: 202206021410 <br>
> runner@Mac-1654183989075.local:work/opensmalltalk-vm/opensmalltalk-vm<br>
> Date: Thu Jun 2 16:10:44 2022 CommitHash: c9fd365<br>
> Plugins: 202206021410 <br>
> runner@Mac-1654183989075.local:work/opensmalltalk-vm/opensmalltalk-vm<br>
> <br>
> Is there any way to improve its performance?<br>
> <br>
> Thanks in advance,<br>
> Nico PM<br>
> <br>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</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>