[squeak-dev] The Trunk: Collections-nice.535.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Sep 8 20:23:53 UTC 2013


Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.535.mcz

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

Name: Collections-nice.535
Author: nice
Time: 8 September 2013, 10:22:51.173 pm
UUID: 51a740f5-7aa3-452b-aff4-bfeadb8e4ce5
Ancestors: Collections-cmm.534

Remove OneCharacterSymbols optimization since it is presumed quasi-unused, at least since recent Scanner change.

=============== Diff against Collections-cmm.534 ===============

Item was changed:
  ----- Method: Symbol class>>initialize (in category 'class initialization') -----
  initialize
  
  	"Symbol initialize"
  
  	Symbol rehash.
- 	OneCharacterSymbols := nil.
- 	OneCharacterSymbols := (1 to: 256) collect: [ :i | (i - 1) asCharacter asSymbol].
  	Smalltalk addToShutDownList: self.
  !

Item was changed:
  ----- Method: Symbol class>>internCharacter: (in category 'instance creation') -----
  internCharacter: aCharacter
+ 	^self intern: aCharacter asString!
- 	aCharacter asciiValue > 256 ifTrue:[^self intern: aCharacter asString].
- 	OneCharacterSymbols ifNil: [^self intern: aCharacter asString].
- 	^OneCharacterSymbols at: aCharacter asciiValue + 1
- !



More information about the Squeak-dev mailing list