Re: Performance assistance / advice

"Yuri Davidovsky (as work at disclosure dot ie)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>

> On 2 Apr 2025, at 12:11, Tim Bradshaw (as tfb at tfeb dot org) <[email protected]> wrote:
> 
> As a distant followup to this: C seems to win, by a depressingly large margin.

Try to see how it behaves at various -O settings, gcc on the lowest one should do no optimisations so that should be streaming straight from your code as you wrote it and I would expect it to be reasonably similar to your lisp code. At higher settings you will see all kinds of black magic kicking in, one of them being autovectorisation.

Shortly, for apple to apple comparisons use the lowest optimisation in C, since Lisps do not appear to be able to do the same tricks as C compilers when they start to do optimisations. That would be the baseline level of performance, if lisp is not able to catch up with that, its compiler probably needs some work. But it likely will be multiple times faster than JS or Python still.

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.