To speed up the terminal initialization time and to avoid hitting services constantly, define a cache time for each bit, save its output to a file and print that instead on following initializations (using the file modification date to invalidate entries).
It may also be useful to set a hard limit on execution time for each bit to avoid slow initializations.
To speed up the terminal initialization time and to avoid hitting services constantly, define a cache time for each bit, save its output to a file and print that instead on following initializations (using the file modification date to invalidate entries).
It may also be useful to set a hard limit on execution time for each bit to avoid slow initializations.