Skip to content

Enable shallow checkout of recursive submodules - #850

Open
andrjohns wants to merge 1 commit into
r-lib:mainfrom
andrjohns:shallow-submodules
Open

Enable shallow checkout of recursive submodules#850
andrjohns wants to merge 1 commit into
r-lib:mainfrom
andrjohns:shallow-submodules

Conversation

@andrjohns

Copy link
Copy Markdown

The current handling of submodules results in a shallow checkout only for the toplevel submodule, while the recursive submodules are cloned in full.

This reduces the install time for StanHeaders from ~2mins down to ~30secs:

system.time({remotes::install_github("stan-dev/rstan/StanHeaders", force=TRUE)})

CRAN:

 user system elapsed 72.187 13.088 131.361 

This PR:

* DONE (StanHeaders)
user system elapsed 33.923 4.648 20.171 

Sign up for freeto 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

@andrjohns