auctex-devel
[Top][All Lists]
Advanced

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

Re: GNU AUCTeX branch, master, updated. 34befcc17649fd6615fd4ef8756fb787


From: Arash Esbati
Subject: Re: GNU AUCTeX branch, master, updated. 34befcc17649fd6615fd4ef8756fb78705f7fe55
Date: Wed, 23 Feb 2022 12:50:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50

Hi Tassilo and David,

Tassilo Horn <tsdh@gnu.org> writes:

> Arash Esbati <arash@gnu.org> writes:
>
>> Or am I missing something?
>
> Yes, the performance aspect.  The annotation function might be called
> hundredth or thousands of times, and appending lists is expensive.
>
> ;; The current version
> (benchmark 10000
>            '(LaTeX--completion-annotation-from-math-menu "aleph"))
> "Elapsed time: 0.136648s"
>
> ;; Your proposed version
> (benchmark 10000
>            '(LaTeX--completion-annotation-from-math-menu-with-append "aleph"))
> "Elapsed time: 2.190776s (1.388426s in 18 GCs)"
>
> So here it would almost be a factor of 20 slower.

Thanks for your responses.  I was aware of `append' being expensive, but
I didn't expect the hit being so large for this case.  I should have
tested myself before asking, well, next time :-)

Best, Arash



reply via email to

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