Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(480082)

Unified Diff: tools/rd_collect.sh

Issue 1540: WIP fix for higher rd_collect.sh CPU utilization.
Patch Set: Created 1 year, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/rd_collect_aom.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/rd_collect.sh
diff --git a/tools/rd_collect.sh b/tools/rd_collect.sh
index f00efe85c411b7df83a88fc1ced5433477185471..368d45fe2f384b1e39d077f468460ad1ac87e804 100755
--- a/tools/rd_collect.sh
+++ b/tools/rd_collect.sh
@@ -385,4 +385,5 @@ if [ -z "$CORES" ]; then
#echo "CORES not set, using $CORES"
fi
-find -L "$@" -type f -name "*.y4m" -print0 | xargs -0 -n1 -P$CORES $RD_COLLECT_SUB
+RANGE="20 32 43 55 63"
luc.trudeau 2017/06/02 21:05:07 How about making the RANGE configurable if [ -z $
+for f in $(find -L "$@" -type f -name "*.y4m"); do for x in $RANGE; do printf '%s\0%s\0' "$f" "$x"; done; done | xargs -0 -n2 -P$CORES $RD_COLLECT_SUB
« no previous file with comments | « no previous file | tools/rd_collect_aom.sh » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld