Added a comment: Automatically adding metadata can be very slow
authoraurelf <aurelf@web>
Fri, 3 Sep 2021 12:46:07 +0000 (12:46 +0000)
committeradmin <admin@branchable.com>
Fri, 3 Sep 2021 12:46:07 +0000 (12:46 +0000)
doc/tips/automatically_adding_metadata/comment_12_92c28dee004562d7085191f3b9e29fec._comment [new file with mode: 0644]

diff --git a/doc/tips/automatically_adding_metadata/comment_12_92c28dee004562d7085191f3b9e29fec._comment b/doc/tips/automatically_adding_metadata/comment_12_92c28dee004562d7085191f3b9e29fec._comment
new file mode 100644 (file)
index 0000000..5d9ba60
--- /dev/null
@@ -0,0 +1,15 @@
+[[!comment format=mdwn
+ username="aurelf"
+ avatar="http://cdn.libravatar.org/avatar/99aa02fcf7f5a1453b1e2528f2f543ac"
+ subject="Automatically adding metadata can be very slow "
+ date="2021-09-03T12:46:06Z"
+ content="""
+Running extract on very large files (system backups) can be too long (killed it after running several hours). 
+In general `extract` seem slow on tar.gz archives. 
+
+I added `timeout 100s` before the tool is called in the pre commit script:
+
+`LC_ALL=C timeout 100s $tool_exec \"./$f\" | ...`
+
+This allows to have the commit to complete in reasonable time, probably loosing some metadata.
+"""]]