[squeak-dev] The Trunk: Collections-nice.171.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Oct 20 23:51:29 UTC 2009
Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.171.mcz
==================== Summary ====================
Name: Collections-nice.171
Author: nice
Time: 21 October 2009, 1:50:44 am
UUID: b82b4a65-94cc-4cf5-a91a-127a9bf65ccf
Ancestors: Collections-nice.170
deprecated #fasterKeys
(should be removed soon)
=============== Diff against Collections-nice.170 ===============
Item was changed:
----- Method: Dictionary>>fasterKeys (in category 'accessing') -----
fasterKeys
+ "Contrary to old version of #keys, this method returned an Array rather than a Set.
+ This was faster because no lookup: was performed.
+ But now, #keys also return an Array, so don't use #fasterKeys anymore."
- "most uses of keys don't need a Set.
- This method is faster than keys, because no lookup: will be performed"
+ self deprecated: 'use #keys'.
+
+ ^self keys.
+ !
- ^Array new: self size streamContents: [:s| self keysDo: [:key| s nextPut: key]]!
Item was removed:
- ----- Method: KeyedSet>>fasterKeys (in category 'accessing') -----
- fasterKeys
- "most uses of keys don't need a Set.
- This method is faster than keys, because no lookup: will be performed"
-
- ^Array new: self size streamContents: [:s| self keysDo: [:key| s nextPut: key]]!
Item was removed:
- ----- Method: WeakRegistry>>fasterKeys (in category 'accessing') -----
- fasterKeys
- ^self protected:[
- Array streamContents:[:s| valueDictionary keysDo:[:key| s nextPut: key]]].!
More information about the Squeak-dev
mailing list
|