[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
- streams are cool, you could stream virtually anything!, Nicolas Petton, 2015/11/04
- Re: streams are cool, you could stream virtually anything!, John Wiegley, 2015/11/04
- Re: streams are cool, you could stream virtually anything!,
Damien Cassou <=
- Re: streams are cool, you could stream virtually anything!, Michael Heerdegen, 2015/11/04
- Re: streams are cool, you could stream virtually anything!, Michael Heerdegen, 2015/11/04
- Re: streams are cool, you could stream virtually anything!, Nicolas Petton, 2015/11/04
- Re: streams are cool, you could stream virtually anything!, T.V Raman, 2015/11/04
- Re: streams are cool, you could stream virtually anything!, Nicolas Petton, 2015/11/04
- Re: streams are cool, you could stream virtually anything!, John Wiegley, 2015/11/04
- Re: streams are cool, you could stream virtually anything!, T.V Raman, 2015/11/04
- ELPA policy (Was: streams are cool, you could stream virtually anything!), John Wiegley, 2015/11/04
- ELPA policy (Was: streams are cool, you could stream virtually anything!), T.V Raman, 2015/11/04
- Re: ELPA policy, Achim Gratz, 2015/11/08