emacs-devel
[Top][All Lists]
Advanced

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

Re: master 979308b4ca 5/9: org-export-data: Concatenate strings in tempo


From: Eli Zaretskii
Subject: Re: master 979308b4ca 5/9: org-export-data: Concatenate strings in temporary buffer for performance
Date: Thu, 16 Jun 2022 15:53:25 +0300

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Ihor Radchenko <yantar92@gmail.com>
> Date: Thu, 16 Jun 2022 08:19:33 -0400
> 
> Eli Zaretskii [2022-06-16 04:09:44] wrote:
> >     org-export-data: Concatenate strings in temporary buffer for performance
> >     
> >     * lisp/org/ox.el (org-export-data): Use temporary buffer to collect 
> > export
> >     data instead of `mapconcat'.  Using buffer puts less load on garbage
> >     collector.
> 
> AFAICT this just replaces `mapconcat` with a `with-temp-buffer + dolist
> + insert`, so if this makes a significant performance difference, it
> points to a performance problem in our `mapconcat`, right?

I didn't test each of the changes separately, so I don't know.



reply via email to

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