[squeak-dev] The Trunk: Traits-eem.313.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Aug 22 14:57:23 UTC 2021
Eliot Miranda uploaded a new version of Traits to project The Trunk:
http://source.squeak.org/trunk/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
|