Andreas Raab uploaded a new version of PackageInfo-Base to project The Trunk:
http://source.squeak.org/trunk/PackageInfo-Base-ul.30.mcz==================== Summary ====================
Name: PackageInfo-Base-ul.30
Author: ul
Time: 13 November 2009, 4:34:05 am
UUID: 30baab4c-1f58-ef49-815a-ab65f14fefa4
Ancestors: PackageInfo-Base-ar.29
- PackageInfo >> #classesAndMetaClasses returns a Set instead of an Array. This greatly improves the performance of #externalClasses, #externalTraits and #outsideClasses when the package has more than a few classes, because they rely on fast #includes: implementation.
=============== Diff against PackageInfo-Base-ar.29 ===============
Item was changed:
----- Method: PackageInfo>>classesAndMetaClasses (in category 'listing') -----
classesAndMetaClasses
+ "Return a Set with all classes and metaclasses belonging to this package"
+
+ | baseClasses result |
- | baseClasses |
baseClasses := self classes.
+ result := (Set new: baseClasses size * 2)
+ addAll: baseClasses;
+ yourself.
+ baseClasses do: [ :c |
+ result add: c classSide].
+ ^result
+ !
- ^baseClasses , (baseClasses collect: [:c | c classSide])!
Item was removed: