[squeak-dev] The Trunk: Graphics-mt.482.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Mon Feb 14 16:43:13 UTC 2022


Hi all --

Please report whether I am overlooking something here... It was kind of annoying that my entire TrueType cache was gone after just saving the image and keep on working.

Also see the companion commit TrueType-mt.71.

Best,
Marcel
Am 14.02.2022 17:40:00 schrieb commits at source.squeak.org <commits at source.squeak.org>:
Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mt.482.mcz

==================== Summary ====================

Name: Graphics-mt.482
Author: mt
Time: 14 February 2022, 5:39:41.237304 pm
UUID: 4613fffa-7d65-d143-a077-7315d58e8d50
Ancestors: Graphics-mt.481

Changes hibernation behavior of forms to only #hibernate on snapshot-and-quit. Do not #hibernate on snapshop-no-quit.

Why? Makes snapshotting and working with TrueType fonts more smooth/responsive.

=============== Diff against Graphics-mt.481 ===============

Item was removed:
- ----- Method: Form class>>shutDown (in category 'shut down') -----
- shutDown "Form shutDown"
- "Compress all instances in the system. Will decompress on demand..."
- Form allInstancesDo: [:f | f hibernate].
- ColorForm allInstancesDo: [:f | f hibernate].!

Item was added:
+ ----- Method: Form class>>shutDown: (in category 'shut down') -----
+ shutDown: quitting
+ "When quitting, compress all instances in the system. Will decompress on demand after start-up. Note that we avoid hibernating forms during no-quit snapshotting to keep the system as responsive as possible directly after."
+
+ "Form shutDown: true"
+ quitting ifTrue: [
+ Form allInstancesDo: [:f | f hibernate].
+ ColorForm allInstancesDo: [:f | f hibernate]].!

Item was removed:
- ----- Method: StrikeFont class>>cleanUp (in category 'class initialization') -----
- cleanUp
- "Flush synthesized strike fonts"
-
- self allInstancesDo:[:sf| sf reset].!

Item was added:
+ ----- Method: StrikeFont class>>cleanUp: (in category 'class initialization') -----
+ cleanUp: aggressive
+
+ aggressive ifTrue: [self allInstancesDo: [:sf | sf reset]].!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220214/7fcf17e7/attachment.html>


More information about the Squeak-dev mailing list