help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: `append' vs. `nconc'


From: Emanuel Berg
Subject: Re: `append' vs. `nconc'
Date: Fri, 01 Jan 2016 14:26:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Barry Margolin <barmar@alum.mit.edu> writes:

>> The thing here is, when it is very obvious and
>> everything is small and easy to handle, what is the
>> actual gain in time and space not using `append'?
>> 
>> Answer:
>> 
>>     -> 0
>> 
>> But OK, as a matter of principle it can be a cool
>> thing to know/do.
>
> NCONC was created at least 40 years ago, when
> computers were slow and had very little memory (a
> modern cellphone is has the power of a roomful of
> 70's-era mainframes). And garbage collection was
> also very slow (generational GC hadn't been
> developed yet).
>
> So optimizations like NCONC could be very useful
> back then. These days, the benefit is probably
> very little.

Q.E.D. :)

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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