[squeak-dev] Overhead of SystemProgressMorph/#do:displayingProgress: is huge

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Tue Oct 6 11:36:53 UTC 2020


[(1 to: 1000) do: [:i | 10 milliSeconds wait]] timeToRun. "--> 11758"
[(1 to: 1000) do: [:i | 10 milliSeconds wait] displayingProgress: [:x | x asString]] timeToRun. "--> 18528"
18528 / 11758. "--> 1.57"


In this example, in total, 3.9 seconds are spent in SystemProgressMorph(Morph) >> #updateDropShadowCache. I found out that in #setLayoutBoundsFromLayout:, the #dropShadow cache is cleared in every second iteration of the code from above! Why is bounds ~= outer? Is this a new layout problem? :-)

Best,
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20201006/7601f820/attachment.html>


More information about the Squeak-dev mailing list