Re: commit 44ec60d to speed up MAPPLY1 via lambda optimization

David Scherfgen via Maxima-discuss <[email protected]>
Newsgroups gmane.comp.mathematics.maxima.general
Message-ID <CAMTHLKhDQj_RKFj9XNGvDF9piUrtp94Q2XeGpZ+uPAZNwGw=6Q@mail.gmail.com>
Hi Robert,

This was surfaced while trying to find out, with the help of my good friend
Claude, why some tests use so much memory, rtestezunits being one of them.
The number that gave it away was the count of the converted forms that's
printed after the test suite run. It was exceptionally high.

Best regards
David

Robert Dodier <[email protected]> schrieb am Sa., 15. Aug. 2026,
19:45:

> Hey, I just saw commit 44ec60d which avoids calling COERCE on Lisp
> lambda expressions, which makes a lot of stuff faster, and makes
> pattern-matching stuff (e.g. ezunits) much, much faster. That is
> really terrific!
>
> It has always bothered me that pattern-matching stuff is (or was, I
> guess) much slower than built-in simplification, to the extent that it
> makes me think twice about bringing pattern matching into the picture
> for the purely practical reason that it slows down everything
> noticeably, so this optimization is going to be really helpful.
>
> David, may I ask how you discovered the COERCE bottleneck in MAPPLY1 ?
>
> Thanks a lot,
>
> Robert
>

_______________________________________________
Maxima-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
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.