Update filter_many.sh script to correctly handle long rules
Currently the filter_many script uses xargs to aggregate the matched rules (and their frequencies) from multiple processes together. Some easylist rules are very long (e.g. >13k chars). However, Linux only ensures that writes to pipes are atomic up to PIPE_BUF = 4096 bytes, causing lines to be (rarely) interleaved. We thus change the script to have each process write to an independent temporary file, which are later aggregated serially. Bug: 1039730 Change-Id: If1b13a49134d238710a6e345fc274b5759fb2092 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1990133 Commit-Queue: Alex Turner <alexmt@chromium.org> Reviewed-by:Josh Karlin <jkarlin@chromium.org> Cr-Commit-Position: refs/heads/master@{#729535}
Showing
Please register or sign in to comment