Christoph Thiede uploaded a new version of Morphic to project The Inbox: http://source.squeak.org/inbox/Morphic-ct.2154.mcz
==================== Summary ====================
Name: Morphic-ct.2154 Author: ct Time: 3 January 2024, 10:32:55.304904 pm UUID: e8537454-a78c-614f-99c4-aef07633d14e Ancestors: Morphic-ct.2150
Accelerates SystemWindow>>#setLabel: when the label has not changed. Significantly increased my FPS in a scenario.
=============== Diff against Morphic-ct.2150 ===============
Item was changed: ----- Method: SystemWindow>>setLabel: (in category 'label') ----- setLabel: aString | frame | (model windowReqNewLabel: aString) ifFalse: [^ self]. + labelString = aString ifTrue: [^ self]. labelString := aString. label ifNil: [^ self]. label contents: (aString ifNil: ['']). self labelWidgetAllowance. "Sets it if not already" self isCollapsed ifTrue: [self extent: (label width + labelWidgetAllowance) @ (self labelHeight + 2)] ifFalse: [label fitContents; setWidth: (label width min: self width - labelWidgetAllowance). label align: label bounds topCenter with: self topCenter + (0@self borderWidth). collapsedFrame ifNotNil: [collapsedFrame := collapsedFrame withWidth: label width + labelWidgetAllowance]]. frame := LayoutFrame new. frame leftFraction: 0.5; topFraction: 0.5; leftOffset: label width negated // 2; topOffset: label height negated // 2. label layoutFrame: frame. !
squeak-dev@lists.squeakfoundation.org