[Cuis-dev] Slow performance of UnicodeString>>#asLowercase?

Nicolás Papagna Maldonado nicolas.papagna at gmail.com
Mon Jun 19 20:14:01 PDT 2023


Thanks a lot for the quick fix, Juan!

Running the same experiment, #asLowercase now takes about 0.7% (36ms
instead of 8s) with the new update.
This is fantastic!

Cheers,
Nico PM

On Mon, Jun 19, 2023 at 10:24 PM Juan Vuletich <juan at cuis.st> wrote:

> Hi Nico,
>
> Thanks for reporting. Just pushed two updates that should improve the
> situation.
>
> Cheers,
>
> On 6/18/2023 4:40 PM, Nicolás Papagna Maldonado via Cuis-dev wrote:
>
> Hi folks!
>
> I'm working on a tool to index source code to perform faster searches.
> While profiling the code that builds the index, I noticed that about 60%
> of the time spent is in UnicodeString>>#asLowercase.
>
> It takes about 60% too (8 seconds) of the time spent when running the
> following experiment, too (see attached screenshot)
>
> CompiledMethod allInstances
>   do: [ :method | method sourceCode asLowercase ]
>   displayingProgress: 'Indexing...'.
>
> This experiment was run on Cuis6.0-5797.image.
> VM version is:
> 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]
> CoInterpreter VMMaker.oscog-dtl.3185 uuid:
> 0e7f07b8-eed6-4362-b223-86c98594ddb9 Jun  2 2022
> StackToRegisterMappingCogit VMMaker.oscog-mt.3179 uuid:
> c6fbcb07-2a19-ed4f-8b40-9c119a70882a Jun  2 2022
> VM: 202206021410
> runner at Mac-1654183989075.local:work/opensmalltalk-vm/opensmalltalk-vm
> Date: Thu Jun 2 16:10:44 2022 CommitHash: c9fd365
> Plugins: 202206021410
> runner at Mac-1654183989075.local:work/opensmalltalk-vm/opensmalltalk-vm
>
> Is there any way to improve its performance?
>
> Thanks in advance,
> Nico PM
>
>
>
> --
> Juan Vuletichcuis.stgithub.com/jvuletichresearchgate.net/profile/Juan-Vuletichindependent.academia.edu/JuanVuletichpatents.justia.com/inventor/juan-manuel-vuletichlinkedin.com/in/juan-vuletich-75611b3twitter.com/JuanVuletich
>
>

-- 

Nicolás Papagna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230620/bdce0870/attachment.htm>


More information about the Cuis-dev mailing list