<div dir="ltr">This accidental commit has been treated.<div><br></div><div>Please see Collections-cmm.873.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 21, 2020 at 11:37 PM <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Chris Muller uploaded a new version of Collections to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Collections-cmm.872.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/Collections-cmm.872.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Collections-cmm.872<br>
Author: cmm<br>
Time: 21 January 2020, 11:36:51.164974 pm<br>
UUID: d1855708-4276-4201-a983-f8b49f71b988<br>
Ancestors: Collections-ul.871<br>
<br>
Let #new: *always* be a performance-improving choice over #new, when the correct size is known.<br>
<br>
=============== Diff against Collections-ul.871 ===============<br>
<br>
Item was changed:<br>
  ----- Method: HashedCollection class>>new: (in category 'instance creation') -----<br>
+ new: numberOfElements <br>
+       "Create a Set large enough to hold numberOfElements without growing"<br>
+       ^ self basicNew initialize:<br>
+               (numberOfElements < 3<br>
+                       ifTrue: [ 3 ]<br>
+                       ifFalse:<br>
+                               [ numberOfElements < 5<br>
+                                       ifTrue: [ 5 ]<br>
+                                       ifFalse: [ self sizeFor: numberOfElements ] ])!<br>
- new: nElements<br>
-       "Create a Set large enough to hold nElements without growing"<br>
-       ^ self basicNew initialize: (self sizeFor: nElements)!<br>
<br>
<br>
</blockquote></div>