chore: workflow clone OI-wiki repo depth 1 #68
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
help to make clone OI-wiki repo fast,and less temp storage.
some perf data:
du -sh *
80M depth=1
137M full
full:
remote: Enumerating objects: 64556, done.
remote: Counting objects: 100% (1046/1046), done.
remote: Compressing objects: 100% (148/148), done.
remote: Total 64556 (delta 483), reused 989 (delta 461), pack-reused 63510
接收对象中: 100% (64556/64556), 86.66 MiB | 19.96 MiB/s, 完成.
处理 delta 中: 100% (47016/47016), 完成.
正在更新文件: 100% (2189/2189), 完成.
real 0m8.226s
user 0m3.234s
sys 0m2.344s
depth=1:
remote: Enumerating objects: 2546, done.
remote: Counting objects: 100% (2546/2546), done.
remote: Compressing objects: 100% (1817/1817), done.
remote: Total 2546 (delta 347), reused 1806 (delta 341), pack-reused 0
接收对象中: 100% (2546/2546), 31.35 MiB | 16.27 MiB/s, 完成.
处理 delta 中: 100% (347/347), 完成.
正在更新文件: 100% (2189/2189), 完成.
real 0m5.877s
user 0m0.609s
sys 0m1.625s