emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: streams are cool, you could stream virtually anything!


From: Damien Cassou
Subject: Re: streams are cool, you could stream virtually anything!
Date: Wed, 04 Nov 2015 17:59:51 +0100

John Wiegley <address@hidden> writes:
>> I just added a function `stream-regexp' to stream.el to stream the search of
>> a regexp in a buffer:
>
> This is amazing, Nicolas! I've wanted this exact construction so many times!
>
> Do you know the memory behavior of doing it this way? That is, for 1000 hits,
> how does the number of cons's allocated compare to the iterative approach?

I think it does not cost anything because nothing is stored in memory.
It's just a different way to write the while loop.

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill



reply via email to

[Prev in Thread] Current Thread [Next in Thread]