container: lib_reports: optimize writes by forking
- Decreases real time in multicore container environments. * Given the nature of the writer, there should be no race conditions.
This commit is contained in:
@@ -342,12 +342,13 @@ function lib_reports::__reports()
|
||||
|
||||
lib_utils::print_custom " \e[32m├─\e[34m\e[1;3m ${_new_echo}\e[0m\n"
|
||||
|
||||
lib_reports::__reports_write \
|
||||
(lib_reports::__reports_write \
|
||||
"$_type" \
|
||||
"$_new_desc" \
|
||||
"$_new_base_file" \
|
||||
"${_new_opts[@]}"
|
||||
"${_new_opts[@]}") &
|
||||
done
|
||||
wait
|
||||
lib_utils::print_custom " \e[32m│\e[0m\n"
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user