Skip to content

Commit fcb6412

Browse files
committed
Re-add IO optimisations
- IO optimisations were useless when building tagged releases (since git already did this), but we should keep them when building from the git index. - Various changes to the build scripts had meant that these were now in an inappropriate place, so put them before all ruleset-processing build work, and only run them if we're doing that work.
1 parent 6fb05ad commit fcb6412

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

makexpi.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ if [ -n "$1" ] && [ "$2" != "--no-recurse" ] && [ "$1" != "--fast" ] ; then
5252
fi
5353

5454
if [ "$1" != "--fast" -o ! -f "$RULESETS_SQLITE" ] ; then
55+
# This is an optimization to get the OS reading the rulesets into RAM ASAP;
56+
# it's useful on machines with slow disk seek times; there might be something
57+
# better (vmtouch? readahead?) that tells the IO subsystem to read the files
58+
# in whatever order it wants...
59+
nohup cat src/chrome/content/rules/*.xml >/dev/null 2>/dev/null &
60+
5561
echo "Generating sqlite DB"
5662
python2.7 ./utils/make-sqlite.py
5763
fi

0 commit comments

Comments
 (0)