emacs-devel
[Top][All Lists]
Advanced

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

Re: Lisp files that load cl-lib in problematical ways


From: Dmitry Gutov
Subject: Re: Lisp files that load cl-lib in problematical ways
Date: Thu, 26 Oct 2023 13:03:01 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 26/10/2023 12:31, Adam Porter wrote:
Hi Eli,

I'm curious about this:

Btw, some of the cl-lib facilities should not be used in new code if
they have equivalent implementations ins seq.el (which is nowadays
preloaded) and in map.el.

Since seq.el and map.el use generic methods, don't they have some additional overhead compared to type-specific functions, like cl-lib ones that are specific to lists?  Or is it small enough now that it doesn't matter anymore?

For most functions, the dispatch overhead might only show up on the radar for small sequences (otherwise it's dwarfed by useful work). And I haven't yet seen a case where it was specifically a problem.

cl-lib has its own performance problems, so the real answer is for the programmer to measure all alternatives and sometimes contribute performance fixes upstream ;)



reply via email to

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