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

Speed up docs.to-html by not using root-branch #4650

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

ChrisPenner
Copy link
Contributor

Overview

When investigating a bug for Rebecca earlier today I saw we're loading the root branch unnecessarily in docs.to-html and it was a trivial fix. Should speed up the command and also means you don't have to wait for the root branch to load into memory.

Implementation notes

Rather than loading the root branch, then getting a sub-branch; just load the sub-branch directly. It'll get pulled from the cache if it's already loaded elsewhere in UCM.

Test coverage

None, it's a pretty trivial change.

@ChrisPenner ChrisPenner marked this pull request as ready for review January 29, 2024 21:56
@ChrisPenner ChrisPenner requested a review from aryairani January 29, 2024 21:56
@aryairani aryairani merged commit 54f64a5 into trunk Jan 30, 2024
7 checks passed
@aryairani aryairani deleted the cp/speedup-docs-to-html branch January 30, 2024 14:45
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.

2 participants