Skip to content

Parallel mdx building #594

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Parallel mdx building #594

wants to merge 5 commits into from

Conversation

gante
Copy link
Member

@gante gante commented Jul 8, 2025

Speeds up the doc builder in the MDX building part by parallelizing the (embarrassingly parallel) loop.

Example of CI run from a PR in transformers: link (total time = 13:00)
Same, but with this PR: link (total time = 11:22, i.e. 15% speedup, docs preview)

To tackle the slow build time, the next part to look at is the JS part, invoked after the print("Building HTML files. This will take a while :-)") statement.

🤖 Made with AI 🤖

@gante gante requested a review from mishig25 July 8, 2025 16:29
@@ -170,7 +170,6 @@ def regex_closure(object_doc, regex):


def get_signature_component_svelte(name, anchor, signature, object_doc, source_link=None, is_getset_desc=False):
print("some things svelte")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(this one was polluting the CI runs :) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant