-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Memoize result value in Utilities.getremote (#1838)
Utilities.getremote is called when figuring out the URL to methods while rendering the documentation. A profile of makedocs for Documenters docs showed that almost a third of the collected samples was inside getremote, and in particular in the spawned process to git. This patch memoizes the result of getremote (on a per-source-file basis). This should give noticeable improvements, since this function is often often called with the same argument.
- Loading branch information
1 parent
051bb4a
commit 14c1ef2
Showing
3 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters