Skip to content

Use URL to download CGAL source rather than git#1997

Merged
alecjacobson merged 1 commit intomainfrom
alecjacobson/use-cgal-url-instead-of-git
Mar 14, 2022
Merged

Use URL to download CGAL source rather than git#1997
alecjacobson merged 1 commit intomainfrom
alecjacobson/use-cgal-url-instead-of-git

Conversation

@alecjacobson
Copy link
Copy Markdown
Contributor

CGAL's git repository is ginormous (> 1GB). cmake's FetchContent has the GIT_SHALLOW but this still results in a huge download. If we're using a release of cgal then there's not much advantage to use git anyway. Hence, switch to url fetch → significantly smaller download ~35MB.

@alecjacobson alecjacobson requested a review from jdumas March 7, 2022 16:43
@jdumas
Copy link
Copy Markdown
Collaborator

jdumas commented Mar 7, 2022

GIT_SHALLOW only works if the GIT_TAG points to a proper release tag rather than a SHA1. In this case, the amount of data downloaded should be about the same as with a tar.gz URL (unless they prune additional stuff when packaging releases).

@alecjacobson
Copy link
Copy Markdown
Contributor Author

That's correct. GIT_SHALLOW unfortunately pulls in a lot more, could be a combination of the zip being pruned or this issue in cmake.

Method : Size in _deps/cgal*
baseline 1011MB
GIT_SHALLOW 700MB
zip url 111MB

Perhaps, we can revisit this benchmark if cmake fixes the shallow issue.

@alecjacobson alecjacobson merged commit ec72a81 into main Mar 14, 2022
@alecjacobson alecjacobson deleted the alecjacobson/use-cgal-url-instead-of-git branch March 14, 2022 17:14
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