[squeak-dev] The Inbox: Traits-eem.313.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu Jul 14 14:11:39 UTC 2022
A new version of Traits was added to project The Inbox:
http://source.squeak.org/inbox/Traits-eem.313.mcz
==================== Summary ====================
Name: Traits-eem.313
Author: eem
Time: 22 August 2021, 7:57:20.929755 am
UUID: 11b5e1e0-abf9-4352-b50a-eba7698082c3
Ancestors: Traits-pre.312
Avoid materializing method properties in methods that don't have them when computing originalTraitMethod. Good for a -5% speedup in compilation times.
=============== Diff against Traits-pre.312 ===============
Item was changed:
----- Method: CompiledMethod>>originalTraitMethod (in category '*Traits-NanoKernel') -----
originalTraitMethod
+ "Answer the original trait method for the receiver, or nil if none."
+ | propertiesOrSelector |
+ ^(propertiesOrSelector := self penultimateLiteral) isMethodProperties ifTrue:
+ [propertiesOrSelector originalTraitMethod]!
- "Remember the original trait method for the receiver."
- ^self properties originalTraitMethod!
More information about the Squeak-dev
mailing list
|