help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: [External] : Passing buffers to function in elisp


From: Stefan Monnier
Subject: Re: [External] : Passing buffers to function in elisp
Date: Sat, 25 Feb 2023 18:52:42 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> If `emms-info-native--read-and-decode-ogg-page' is called very often
> (hundreds of times or more), it's probably better to use one single
> buffer instead of a fresh temp buffer every single time.  Using temp
> buffers creates quite a bunch of garbage IME.

That's definitely something to consider.  Another is whether the ELisp
code was byte-compiled (if not, then all bets are off, the interpreter
itself generates a fair bit of garbage, especially if you use a lot of
macros).  Are you using `bindat-type`?


        Stefan




reply via email to

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