<div dir="ltr"><div><div>Once again, I pushed this un-essential 3 years old change to trigger another CI build...<br></div>If the build fails, don&#39;t worry, there are many other un-essential changes I did.<br></div>Why do you think I keep my images and use the update stream?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-25 0:38 GMT+02:00  <span dir="ltr">&lt;<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Nicolas Cellier uploaded a new version of Collections to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Collections-nice.570.mcz" target="_blank">http://source.squeak.org/trunk/Collections-nice.570.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Collections-nice.570<br>
Author: nice<br>
Time: 25 May 2014, 12:37:21.454 am<br>
UUID: 1069cfcc-6bd7-4d7d-87fb-0a0a546f8a0c<br>
Ancestors: Collections-nice.569<br>
<br>
Let&#39;s optimize a bit LinkedList&gt;&gt;at:ifAbsent: by scanning the list only once, unlike super.<br>
<br>
=============== Diff against Collections-nice.569 ===============<br>
<br>
Item was added:<br>
+ ----- Method: LinkedList&gt;&gt;at:ifAbsent: (in category &#39;accessing&#39;) -----<br>
+ at: index ifAbsent: exceptionBlock<br>
+       &quot;Optimized to scan the list once, super would twice.&quot;<br>
+       | i |<br>
+       index &lt; 1 ifTrue: [^exceptionBlock value].<br>
+       i := 0.<br>
+       self do: [:link |<br>
+               (i := i + 1) = index ifTrue: [^ link]].<br>
+       ^exceptionBlock value!<br>
<br>
<br>
</blockquote></div><br></div>