emacs-devel
[Top][All Lists]
Advanced

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

Re: master 5f8922b9e2: ; * lisp/emacs-lisp/cconv.el (cconv--var-classifi


From: Stefan Monnier
Subject: Re: master 5f8922b9e2: ; * lisp/emacs-lisp/cconv.el (cconv--var-classification): Optimise.
Date: Sat, 09 Jul 2022 11:38:05 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Mattias EngdegÄrd [2022-07-09 05:54:21] wrote:
>     ; * lisp/emacs-lisp/cconv.el (cconv--var-classification): Optimise.
> ---
>  lisp/emacs-lisp/cconv.el | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/lisp/emacs-lisp/cconv.el b/lisp/emacs-lisp/cconv.el
> index eca1123899..7f95fa94fa 100644
> --- a/lisp/emacs-lisp/cconv.el
> +++ b/lisp/emacs-lisp/cconv.el
> @@ -267,8 +267,7 @@ Returns a form where all lambdas don't have any free 
> variables."
>  
>  (define-inline cconv--var-classification (binder form)
>    (inline-quote
> -   (alist-get (cons ,binder ,form) cconv-var-classification
> -              nil nil #'equal)))
> +   (cdr (assoc (cons ,binder ,form) cconv-var-classification))))

I think a better optimization for that is to write a compiler-macro, no?


        Stefan




reply via email to

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