Increase performance further by storing rendered output
This commit is contained in:
parent
7251cefc94
commit
9f8786dd39
9
cv
9
cv
|
@ -59,7 +59,7 @@ frame(){
|
|||
bot) printf "╚ %-${w}s ═ %-${w}s ═ %-${w}s ╝\n" | sed "s/\ /═/g" ;;
|
||||
esac
|
||||
}
|
||||
result(){
|
||||
parse(){
|
||||
frame top
|
||||
title "Queried at $date for $(get country)."
|
||||
frame up
|
||||
|
@ -98,6 +98,13 @@ result(){
|
|||
frame down
|
||||
fi
|
||||
}
|
||||
result(){
|
||||
if [ ! -f "$data/$date-$country-out" ]
|
||||
then
|
||||
parse > "$data/$date-$country-out"
|
||||
fi
|
||||
cat "$data/$date-$country-out"
|
||||
}
|
||||
|
||||
# Main code starts here.
|
||||
if [ ! -z "$country" ]
|
||||
|
|
Reference in New Issue