The Trunk: Collections-eem.571.mcz

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

The Trunk: Collections-eem.571.mcz

commits-2
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!