The Trunk: System-nice.182.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: System-nice.182.mcz

commits-2
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=7205
cache 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!