Nicolas Cellier uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-nice.182.mcz==================== Summary ====================
Name: System-nice.182
Author: nice
Time: 29 November 2009, 10:34:37 am
UUID: bba11df9-123e-409e-9830-3bab1c9dd9fc
Ancestors: System-dtl.181
http://bugs.squeak.org/view.php?id=7205cache category in MethodReference instVar
allows a 25% speedup in Monticello snapshotting, after source caching
=============== Diff against System-dtl.181 ===============
Item was changed:
Object subclass: #MethodReference
+ instanceVariableNames: 'classSymbol classIsMeta methodSymbol stringVersion category'
- instanceVariableNames: 'classSymbol classIsMeta methodSymbol stringVersion'
classVariableNames: ''
poolDictionaries: ''
category: 'System-Tools'!
!MethodReference commentStamp: 'tlk 5/9/2006 18:43' prior: 0!
A MethodReference is is a lightweight proxy for a CompiledMethod. Has methods for pointed to the CompileMethod's source statements, byte codes. Is heavily used my Tools.
Instance Variables
classIsMeta: Boolean class vs. instance
classSymbol: Symbol for method's class (without class keyword if meta)
methodSymbol: Symbol for method's selector
stringVersion: 'Class>>selector:' format
!
Item was added:
+ ----- Method: MethodReference>>category (in category 'queries') -----
+ category
+ ^ category ifNil: [category := self actualClass organization categoryOfElement: methodSymbol]!
Item was added:
+ ----- Method: MethodReference>>category: (in category 'setting') -----
+ category: aSymbol
+ category := aSymbol!