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:
2025-09-23 17:40:27 -07:00
parent 87232ebefd
commit bf3a4e36e6

View File

@@ -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_utils::print_custom " \e[32m├─\e[34m\e[1;3m ${_new_echo}\e[0m\n"
lib_reports::__reports_write \ (lib_reports::__reports_write \
"$_type" \ "$_type" \
"$_new_desc" \ "$_new_desc" \
"$_new_base_file" \ "$_new_base_file" \
"${_new_opts[@]}" "${_new_opts[@]}") &
done done
wait
lib_utils::print_custom " \e[32m│\e[0m\n" lib_utils::print_custom " \e[32m│\e[0m\n"
done done