ksummit.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Vegard Nossum <vegard.nossum@oracle.com>
To: Jonathan Corbet <corbet@lwn.net>,
	Jani Nikula <jani.nikula@intel.com>,
	ksummit@lists.linux.dev
Subject: Re: [TECH TOPIC] Kernel documentation
Date: Mon, 20 Nov 2023 13:06:16 +0100	[thread overview]
Message-ID: <430ee6bb-2556-4674-ae9d-fd7729bf8afd@oracle.com> (raw)
In-Reply-To: <87v8fiq6cl.fsf@meer.lwn.net>


(We already exchanged on this topic, but repeating it for the list:)

On 20/06/2023 21:30, Jonathan Corbet wrote:
> Jani Nikula <jani.nikula@intel.com> writes:
> 
>> It should be more feasible to build the documentation. Make it
>> faster,

When using PyPy instead of CPython to run Sphinx, I see a 22%
performance improvement on the kernel documentation, which is not
insignificant.

> A while back, I went into Sphinx with a hatchet and managed to take 
> about 20% off the build time.  The C domain stuff builds a data 
> structure of incredible complexity, then just tosses much of it
> away. I've never had the time to figure out why they do that or to
> try to get my hack job into a condition where I'd be willing to show
> it to my dog, much less the Sphinx developers.

I also profiled the documentation build some weeks ago and came to the
same conclusion: around 40% of the time is spent inside resolve_xref(),
the exact same C domain stuff you mentioned.

The gcc project/documentation has the same problem, albeit in the C++
domain code, there is an open ticket for it:

   https://github.com/sphinx-doc/sphinx/issues/10966

If we're really not using the functionality provided by the C domain
code, maybe instead of ripping it out we could provide something like a
conf.py toggle to disable it? (The idea being that the patch would be
smaller and more acceptable upstream...)


Vegard

  reply	other threads:[~2023-11-20 12:06 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-16 17:48 Jonathan Corbet
2023-06-20 16:02 ` Jani Nikula
2023-06-20 19:30   ` Jonathan Corbet
2023-11-20 12:06     ` Vegard Nossum [this message]
2023-11-20 13:50       ` Jonathan Corbet
2023-11-20 14:42         ` Mauro Carvalho Chehab
2023-11-20 14:49           ` Johannes Berg
2023-11-20 20:54           ` Jonathan Corbet
2023-06-29 21:34   ` Intersphinx ([TECH TOPIC] Kernel documentation) Jonathan Corbet
2023-06-30 13:17     ` Jani Nikula
2023-06-30 16:54     ` Theodore Ts'o
2023-06-30 17:11       ` Jonathan Corbet
2023-07-02  1:46     ` Steven Rostedt
2023-07-02  4:56       ` Linus Torvalds
2023-07-02 13:18         ` James Bottomley
2023-07-02 18:32         ` Steven Rostedt
2023-07-02 18:44           ` Linus Torvalds
2023-07-03  2:46             ` Theodore Ts'o
2023-06-21 11:04 ` [TECH TOPIC] Kernel documentation Thorsten Leemhuis
2023-06-26 14:34   ` Jan Kara
2023-11-11 12:42 ` Vegard Nossum
2023-11-11 15:14   ` Jonathan Corbet
2023-11-20 12:20     ` Vegard Nossum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=430ee6bb-2556-4674-ae9d-fd7729bf8afd@oracle.com \
    --to=vegard.nossum@oracle.com \
    --cc=corbet@lwn.net \
    --cc=jani.nikula@intel.com \
    --cc=ksummit@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox