-
Notifications
You must be signed in to change notification settings - Fork 36
Use zstd instead of zip #398
Changes from all commits
fb790e4
cdbcbd5
96ef42d
50dd2ae
156918a
98bb5ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,15 +31,14 @@ if [ ! -d "$KLAB_OUT/log" ]; then | |
mkdir -p "$KLAB_OUT/log" | ||
fi | ||
|
||
zip -r "$KLAB_OUT/log/$spec_hash.zip" config.json | ||
|
||
cd $KLAB_OUT | ||
find . \ | ||
\( -wholename "*$spec_hash*" -or -wholename "*$spec_name*" \) \ | ||
-and ! -wholename "*/log/*.zip" \ | ||
-exec zip "./log/$spec_hash.zip" {} + | ||
|
||
zip -r "log/$spec_hash.zip" \ | ||
"prelude.smt2" \ | ||
"rules.k" \ | ||
"bin_runtime.k" | ||
\( -name "*$spec_hash*" \ | ||
-o -name "*$spec_name*" \ | ||
-o -name config.tmp.json \ | ||
-o -name prelude.smt2 \ | ||
-o -name rules.k \ | ||
-o -name bin_runtime.k \) \ | ||
-a \! -name "*.tar" \ | ||
-a \! -name "*.zip" \ | ||
-exec tar --create --zstd --file "./log/$spec_hash.tar" {} + | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here we could pass the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you have a rough idea of what kind of speedup we could get from this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the test archive on buildbot, using |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this from
config.json
toconfig.tmp.json
, because the former is not in$KLAB_OUT
while the latter is, and this made the code cleaner (since I only have to search in one dir).AFAICT the former is a subset of the latter, so everything should be fine.
@mhhf true story?