emacs-devel
[Top][All Lists]
Advanced

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

Re: Why does adding a useless copy-sequence and discarding the result ma


From: Clément Pit-Claudel
Subject: Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster?
Date: Sat, 25 Mar 2017 00:24:20 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 2017-03-25 00:06, Clément Pit-Claudel wrote:
> * Why does running additional, supposedly useless code speed things up so 
> much? (1)

Interestingly, it turns out that (copy-sequence) isn't needed: instead, it's 
enough to use (sleep-for 0.000001) (or even (sleep-for 
cl-least-positive-normalized-float)) to get the 40x speedup.



reply via email to

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