mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] docs: A couple of automarkup improvements
@ 2022-06-30 16:36 Jonathan Corbet
  2022-06-30 16:36 ` [PATCH 1/2] docs: automarkup: track failed cross-reference attempts Jonathan Corbet
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jonathan Corbet @ 2022-06-30 16:36 UTC (permalink / raw)
  To: linux-doc; +Cc: linux-kernel, Nícolas F . R . A . Prado, Jonathan Corbet

Building the docs takes far too long.  Much of the blame for that lies with
Sphinx, but some of it is under our own control.  These two patches
eliminate a bunch of useless work in the automarkup extension.

Benchmarking Sphinx runs is hard, as the run time can be rather variable.
I have consistently found about a 15% speedup from these patches, though,
with no output changes.

Testing was done with Sphinx 4.4.0 and 5.0.2.  My systems all have Python
3.10 installed, and there does not appear, alas, to be a straightforward
way to get Sphinx 3.x to run on that version.  Versions of Sphinx prior to
3.0 will not be affected by these changes.

Jonathan Corbet (2):
  docs: automarkup: track failed cross-reference attempts
  docs: automarkup: do not look up symbols twice

 Documentation/sphinx/automarkup.py | 56 +++++++++++++++++-------------
 1 file changed, 32 insertions(+), 24 deletions(-)

-- 
2.36.1


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

end of thread, other threads:[~2022-07-02  3:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-30 16:36 [PATCH 0/2] docs: A couple of automarkup improvements Jonathan Corbet
2022-06-30 16:36 ` [PATCH 1/2] docs: automarkup: track failed cross-reference attempts Jonathan Corbet
2022-06-30 16:36 ` [PATCH 2/2] docs: automarkup: do not look up symbols twice Jonathan Corbet
2022-07-02  3:27 ` [PATCH 0/2] docs: A couple of automarkup improvements Akira Yokosawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®