From: Jonathan Corbet <corbet@lwn.net>
To: Adam Turner <aaturnerpython@outlook.com>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>
Subject: Re: Sphinx pre v3 -- removing support
Date: Fri, 03 Jun 2022 15:34:14 -0600 [thread overview]
Message-ID: <875ylhjusp.fsf@meer.lwn.net> (raw)
In-Reply-To: <LO3P123MB2681ADAA6BD2102ACBD86622C2A19@LO3P123MB2681.GBRP123.PROD.OUTLOOK.COM>
Adam Turner <aaturnerpython@outlook.com> writes:
>> We've been meaning to raise the minimum version for a bit. Going to v3
>> might be a bit of a stretch, though. I still do most of my test builds
>> with 2.4.3 just because Sphinx got so....much........slower with 3.0.
>> I've not yet had a chance to try out 5.0 to see if that helps things,
>> that's on my list to do soon.
>
> Sphinx 5.0 should be faster, I changed the logic to cache and reuse
> the core publisher objects [1]_. I haven't compared to 2.4.3 though.
So ... here are a few "make htmldocs" builds that I ran
VERSION BUILD TIME
2.4.3 5:24
4.1.2 10:51
4.5.0 10:57
5.0.1 11:17
So 5.0 has actually regressed from 4.5 in terms of speed, and takes more
than twice the time that 2.4.3 takes. These slow builds are really
painful when I'm working through the docs patch queue and have to build
things frequently; they are also a disincentive for other developers to
build the docs and make sure they haven't broken anything.
(Interestingly, total CPU time is ~16:45 for 2.4.3, and ~21:45 for the
later versions. So latter-day Sphinx does use more CPU, but it also
seems to have lost some parallelism.)
I hope you understand why that makes me reluctant to move the minimum
version up to 3.0. But, looking further at this conversation, I don't
think we need to at this point. You said:
> I'm referring to removing support for the "c_allow_pre_v3",
> "c_warn_on_allowed_pre_v3", configuration options [1]_, and the
> associated support for still parsing the pre v3 syntax in the C
> domain [2]_. This means that pre v3 syntax in reStructuredText files
> would not work with Sphinx 6 onwards.
Having looked through the all-too-numerous warnings emitted by our docs
build, I don't see any that look like they would be tied to pre-v3
C-domain syntax. I *believe* that you could remove that support and it
wouldn't bother us, unless there's something I'm missing?
I truly appreciate your contacting us about this - thanks!
jon
next prev parent reply other threads:[~2022-06-03 21:34 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-03 14:13 Sphinx pre v3 -- removing support Adam Turner
2022-06-03 14:21 ` Jonathan Corbet
2022-06-03 14:30 ` Adam Turner
2022-06-03 21:34 ` Jonathan Corbet [this message]
2022-06-03 15:22 ` Matthew Wilcox
2022-06-03 15:30 ` Adam Turner
2022-06-03 15:38 ` Matthew Wilcox
2022-06-03 15:42 ` Konstantin Ryabitsev
2022-06-03 16:00 ` Jonathan Corbet
2022-06-03 16:26 ` Konstantin Ryabitsev
2022-06-03 21:50 ` Jonathan Corbet
2022-06-13 15:40 ` Konstantin Ryabitsev
2022-06-13 16:00 ` Matthew Wilcox
2022-06-13 16:16 ` Adam Turner
2022-06-13 16:19 ` Matthew Wilcox
2022-06-03 22:11 ` Jonathan Corbet
2022-06-03 15:05 ` Akira Yokosawa
2022-06-03 15:27 ` Adam Turner
2022-06-03 15:44 ` Jani Nikula
2022-06-03 15:54 ` Adam Turner
2022-06-03 16:36 ` Akira Yokosawa
2022-06-03 19:05 ` Jani Nikula
2022-06-04 8:13 ` Mauro Carvalho Chehab
2022-07-02 11:23 ` Mauro Carvalho Chehab
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=875ylhjusp.fsf@meer.lwn.net \
--to=corbet@lwn.net \
--cc=aaturnerpython@outlook.com \
--cc=linux-doc@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).