<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hmm... I would prefer to just patch Generator instead of Stream:<div><br></div><div><div><span style="font-size: 13.3333px">s := self environment allClasses readStream.</span></div><div><span style="font-size: 13.3333px">[s reset; take: 3000] bench</span></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">AFTER: '5,700 per second. 175 microseconds per run. 7.59848 % GC time.' </span></div><div><span style="font-size: 13.3333px">BEFORE: '143,000 per second. 6.99 microseconds per run. 33.90644 % GC time.' </span></div></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">Best,</span></div><div><span style="font-size: 13.3333px">Marcel</span></div><div class="mb_sig"></div><blockquote class='history_container' type='cite' style='border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;'>
                        <p style='color: #AAAAAA; margin-top: 10px;'>Am 30.06.2021 01:06:49 schrieb commits@source.squeak.org <commits@source.squeak.org>:</p><div style='font-family:Arial,Helvetica,sans-serif'>A new version of Collections was added to project The Inbox:<br>http://source.squeak.org/inbox/Collections-ct.950.mcz<br><br>==================== Summary ====================<br><br>Name: Collections-ct.950<br>Author: ct<br>Time: 30 June 2021, 1:06:39.38741 am<br>UUID: 58b871bc-ace9-184b-8e98-305453096350<br>Ancestors: Collections-mt.945<br><br>Fixes Stream >> #take:. Unlike in #any:, we must not return nil values from #next here but the enumeration earlier. See CollectionsTests-ct.361.<br><br>=============== Diff against Collections-mt.945 ===============<br><br>Item was changed:<br>  ----- Method: Stream>>take: (in category 'collections - accessing') -----<br>  take: maxNumberOfElements<br>         "See Collection protocol."<br>+ <br>+     | aCollection |<br>+      aCollection := OrderedCollection new.<br>+        maxNumberOfElements timesRepeat: [<br>+           self atEnd ifTrue: [^ aCollection].<br>+          aCollection addLast: self next].<br>+     ^ aCollection!<br>-       <br>-     ^ self any: maxNumberOfElements!<br><br><br></div></blockquote>
                                        </div></body>