9 Commits

Author SHA1 Message Date
MilhouseVH
0bd4793492 buildsystem: avoid process forks to init dashboard status file
A typical image build will update the dashboard 3500-4500 times. This change
avoids two process forks (cat, wc) per update, and the remaining $(< file) is
faster than $(cat file).
2019-06-13 22:12:21 +01:00
MilhouseVH
04b8036e32 buildsystem: replace $(cat file) with faster alternative
See: https://www.gnu.org/software/bash/manual/html_node/Command-Substitution.html

"
...
Bash performs the expansion by executing command in a subshell environment and replacing
the command substitution with the standard output of the command, with any trailing newlines
deleted. Embedded newlines are not deleted, but they may be removed during word splitting. The
command substitution $(cat file) can be replaced by the equivalent but faster $(< file).
"

Testing indicates var=$(< file) is twice as fast as var=$(cat file).
2019-06-13 22:12:21 +01:00
MilhouseVH
7b64c946cd config/multithread: don't filter by PKG_ARCH 2019-03-01 12:25:50 +00:00
MilhouseVH
ad938672b2 buildsystem: parallel pid cleanup 2019-02-28 06:19:13 +00:00
MilhouseVH
3f3395fdf4 buildsystem: switch rm -fr to rm -rf for consistency/OCD 2019-02-22 20:11:50 +00:00
MilhouseVH
85da96229f config/multithreaded: install embedded addons too during addon build 2019-02-13 15:10:54 +00:00
MilhouseVH
23c6529978 scripts/create_addon_mt: support building/installing addons with a single plan 2019-02-08 17:17:43 +00:00
MilhouseVH
750772193d squash: multithreaded progress lock 2019-02-08 17:17:43 +00:00
MilhouseVH
0ebc6fef63 build system: add parallel build support; use new "image" package 2019-02-08 17:17:43 +00:00