On Mon, Aug 23, 2010 at 4:24 PM, Paulo Tanimoto <span dir="ltr">&lt;<a href="mailto:ptanimoto@gmail.com">ptanimoto@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Mon, Aug 23, 2010 at 6:16 AM, John Lato &lt;<a href="mailto:jwlato@gmail.com">jwlato@gmail.com</a>&gt; wrote:<br>
&gt; It&#39;s not necessary to understand CPS to use CPS-based iteratees.  The CPS<br>
&gt; implementation generally simplifies the types and removes the necessity for<br>
&gt; special combinators like ($$) and (&gt;&gt;==), so I strongly suspect newcomers<br>
&gt; will find it easier to use than other variants (although unfortunately I can<br>
&gt; no longer say this from personal experience).  It incorporates the best<br>
&gt; features of Oleg&#39;s two implementations in IterateeM.hs.  The only drawback<br>
&gt; is the added thought overhead of CPS, but users need not be aware of this<br>
&gt; for the most part.<br>
<br>
</div>I agree with you, John.  Personally, I find the CPS version easier to<br>
use, that&#39;s why I asked.  But since people have different styles, I<br>
guess it&#39;s not a bad thing that the two packages use a different<br>
implementation.<br>
<br>
When I was reimplementing Iteratees I also didn&#39;t find any noticeable<br>
slowdown with CPS, but my benchmarks were very simple -- unlike yours.<br>
 You are comparing the darcs branch to the version on Hackage, right?<font color="#888888"><br></font></blockquote><div><br>I&#39;m actually referring to benchmarks from about 10-8 months ago.  I did have them on the website, but it looks like I took them down.  I haven&#39;t run any comparisons recently, except for a few to determine where INLINEs are beneficial.  I&#39;ll make a current set and post them when they&#39;re ready.<br>
<br>John<br></div></div><br>