[Cuis-dev] allSuperclasses --- ~45% faster

Juan Vuletich juan at jvuletich.org
Sat Aug 24 07:01:11 PDT 2019


On 8/23/2019 7:43 PM, Andres Valloud via Cuis-dev wrote:
> | allClasses |
> Smalltalk garbageCollect.
> allClasses := Object withAllSubclasses.
> Time millisecondsToRun: [1000 timesRepeat: [allClasses do: [:each | 
> each allSuperclasses]]] 831
>
> | allClasses |
> Smalltalk garbageCollect.
> allClasses := Object withAllSubclasses.
> Time millisecondsToRun: [1000 timesRepeat: [allClasses do: [:each | 
> each allSuperclassesFaster]]] 569
>
> 831 / 569.0 => 1.460456942003515

@ GitHub now.

Thanks,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich



More information about the Cuis-dev mailing list