Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infra: PEP 0 generation makes edit cycle too slow #3477

Open
hugovk opened this issue Oct 12, 2023 · 0 comments
Open

Infra: PEP 0 generation makes edit cycle too slow #3477

hugovk opened this issue Oct 12, 2023 · 0 comments
Labels
infra Core infrastructure for building and rendering PEPs

Comments

@hugovk
Copy link
Member

hugovk commented Oct 12, 2023

When authoring a PEP, the write-build cycle is too slow because we regenerate the pep-0000.rst file (and topic indexes) in-place, which means that the input folder is modified as part of the build.

That triggers a slow rebuild loop each time.

On my machine, a full build (make clean html) takes 35s and a subsequent incremental build (make html) takes 20s.

For similar actions, others reported:

  • 50s and 37s
  • 58s and 39s
  • 5 minutes, and 30 seconds (10 year old laptop)

Another comparison, for me, a full devguide build takes 14s, and 0.815s for incremental. (Although the devguide has ~55 RST files, PEPs have ~635.)

Can we do something so PEP 0 index files (including topic indexes) don't slow down incremental builds?

For reference, private link to 🔒 Discourse discussion.

@hugovk hugovk added the infra Core infrastructure for building and rendering PEPs label Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra Core infrastructure for building and rendering PEPs
Projects
None yet
Development

No branches or pull requests

2 participants
@hugovk and others