[squeak-dev] The Inbox: Traits-pre.312.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jun 12 15:59:51 UTC 2019


Patrick Rein uploaded a new version of Traits to project The Inbox:
http://source.squeak.org/inbox/Traits-pre.312.mcz

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

Name: Traits-pre.312
Author: pre
Time: 12 June 2019, 5:59:48.264868 pm
UUID: f2ec63fa-f6e8-0347-a2c6-fb8623cb4a92
Ancestors: Traits-nice.311

This speeds up the compilation of methods in traits or in classes using traits by caching subsequent reads to the changes file.

=============== Diff against Traits-nice.311 ===============

Item was changed:
  ----- Method: ClassDescription>>updateTraits (in category '*Traits-NanoKernel') -----
  updateTraits
  	"Recompute my local traits composition"
+ 	CurrentReadOnlySourceFiles cacheDuring: [
+ 		self installTraitsFrom: self traitComposition]!
- 	self installTraitsFrom: self traitComposition.
- !

Item was changed:
  ----- Method: TraitDescription>>addSelectorSilently:withMethod: (in category 'operations') -----
  addSelectorSilently: selector withMethod: compiledMethod
  	"Overridden to update the users of this trait"
+ 	CurrentReadOnlySourceFiles cacheDuring: [
+ 		super addSelectorSilently: selector withMethod: compiledMethod.
+ 		self users do:[:each| each updateTraits]]!
- 	super addSelectorSilently: selector withMethod: compiledMethod.
- 	self users do:[:each| each updateTraits].!



More information about the Squeak-dev mailing list