[Pkg] The Trunk: Collections-eem.571.mcz

commits at source.squeak.org commits at source.squeak.org
Tue May 27 18:49:57 UTC 2014


Eliot Miranda uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-eem.571.mcz

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

Name: Collections-eem.571
Author: eem
Time: 27 May 2014, 11:49:16.946 am
UUID: 5610c761-96af-422f-bb1d-63bc87a1cc7a
Ancestors: Collections-nice.570

Speed up testing different sized strings for equality by
adding a size text to String>>#=.  Tis speeds up e.g.
comparing the first 10,000 ByteString instances to each
other by -67%.

=============== Diff against Collections-nice.570 ===============

Item was changed:
  ----- Method: String>>= (in category 'comparing') -----
  = aString 
  	"Answer whether the receiver sorts equally as aString.
  	The collation order is simple ascii (with case differences)."
  	
+ 	(aString isString
+ 	 and: [self size = aString size]) ifFalse: [^ false].
- 	aString isString ifFalse: [ ^ false ].
  	^ (self compare: self with: aString collated: AsciiOrder) = 2!



More information about the Packages mailing list