Optimization: avoid using a temporary file to calculate the hash in md_handler.

This commit is contained in:
Uriel 2009-06-01 07:00:11 +02:00
parent e9a96d0e26
commit e8cd9a1978
2 changed files with 4 additions and 2 deletions

View file

@ -19,8 +19,10 @@ fn fltr_cache {
a=$f
f=/dev/null
}
if not
if not {
score=`{sha1sum $f || exit 1}
score=$score(1)
}
}
cachedir=/tmp/fltr_cache/$score
mkdir -p $cachedir >[2]/dev/null