unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Slow generation of Org manual
@ 2024-06-29 14:31 Eli Zaretskii
  2024-06-29 15:11 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-06-29 14:31 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-devel

The generation of the Org manual from org.org on the master branch is
again taking a long time.  On one system I use (which is relatively
slow), it takes a whopping 4.5 min.  On a much faster system it still
takes more than 20 sec.

Can this be sped-up, please?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Slow generation of Org manual
  2024-06-29 14:31 Slow generation of Org manual Eli Zaretskii
@ 2024-06-29 15:11 ` Ihor Radchenko
  2024-06-29 16:25   ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Ihor Radchenko @ 2024-06-29 15:11 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> The generation of the Org manual from org.org on the master branch is
> again taking a long time.  On one system I use (which is relatively
> slow), it takes a whopping 4.5 min.  On a much faster system it still
> takes more than 20 sec.
>
> Can this be sped-up, please?

I do not think that it has anything to do with Org.
I also observed slow generation of the manual on master, but it was a
result of Org manual being generated _before_ Org mode is compiled. If I
do

time (touch doc/misc/org.org && make)

_after_ full compilation, I am getting

real	0m10.850s
user	0m10.548s
sys	0m0.293s

This is the usual time I saw in the earlier versions, after we bumped
the gc-cons-threshold.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Slow generation of Org manual
  2024-06-29 15:11 ` Ihor Radchenko
@ 2024-06-29 16:25   ` Eli Zaretskii
  2024-06-29 16:33     ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-06-29 16:25 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-devel

> From: Ihor Radchenko <yantar92@posteo.net>
> Cc: emacs-devel@gnu.org
> Date: Sat, 29 Jun 2024 15:11:41 +0000
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > The generation of the Org manual from org.org on the master branch is
> > again taking a long time.  On one system I use (which is relatively
> > slow), it takes a whopping 4.5 min.  On a much faster system it still
> > takes more than 20 sec.
> >
> > Can this be sped-up, please?
> 
> I do not think that it has anything to do with Org.
> I also observed slow generation of the manual on master, but it was a
> result of Org manual being generated _before_ Org mode is compiled.

That's not what I see here.  Org is already byte-compiled when the Org
manual is generated.  So this cannot be the reason.

> If I do
> 
> time (touch doc/misc/org.org && make)
> 
> _after_ full compilation, I am getting
> 
> real	0m10.850s
> user	0m10.548s
> sys	0m0.293s

I'm guessing this is on a fast machine, in an optimized build, and
probably also with native compilation, right?

> This is the usual time I saw in the earlier versions, after we bumped
> the gc-cons-threshold.

Which earlier versions?  Does that include Emacs 29?

Anyway, something has clearly changed, since it never took so long,
AFAIR.  Did the Org manual in the version that is now on the emacs-30
branch change significantly wrt what we had in Emacs 29?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Slow generation of Org manual
  2024-06-29 16:25   ` Eli Zaretskii
@ 2024-06-29 16:33     ` Ihor Radchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2024-06-29 16:33 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> _after_ full compilation, I am getting
>> 
>> real	0m10.850s
>> user	0m10.548s
>> sys	0m0.293s
>
> I'm guessing this is on a fast machine, in an optimized build, and
> probably also with native compilation, right?

Sure. But the key point is that it is a similar number with what I
recall from earlier.

>> This is the usual time I saw in the earlier versions, after we bumped
>> the gc-cons-threshold.
>
> Which earlier versions?  Does that include Emacs 29?

Yes. Since around b3cbcebd9aa.

> Anyway, something has clearly changed, since it never took so long,
> AFAIR.  Did the Org manual in the version that is now on the emacs-30
> branch change significantly wrt what we had in Emacs 29?

I do not see any difference on my side.
Many things changed in the parser. Some things changed in the manual.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-29 16:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-29 14:31 Slow generation of Org manual Eli Zaretskii
2024-06-29 15:11 ` Ihor Radchenko
2024-06-29 16:25   ` Eli Zaretskii
2024-06-29 16:33     ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).