Re: More on compiler optimization
Martin Simmons <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
>>>>> On Wed, 12 Feb 2025 21:27:49 +0100, Yuri Davidovsky (as work at disclosure dot ie) said: > > > On 12 Feb 2025, at 20:21, Paul Werkowski (as pw at snoopy dot qozzy dot com) <[email protected]> wrote: > > > > Also it helps to avoid generic CL library functions such as cl:cis. > > > > (flet ((%%cis (x) (complex (cos x)(sin x)))) ....) > > Why would be (cis) less efficient than calling (complex (cos x) (sin x))? It is because the compiler doesn't currently optimize cis for double-float, so it will call it out of line with extra unboxing and boxing. -- Martin Simmons LispWorks Ltd http://www.lispworks.com/ _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html