[web tests] Concatenate regex to speed up web test result JSON merging.
The JSON files that are merged by the helper script generally contain a lot of values. The regex matcher in Python is quite optimized, so it's faster to combine identical cases with '|' rather than adding multiple merge helpers that execute the same thing. Savings when run locally on my dev machine are around 500ms-1000ms. Bug: 1014845 Change-Id: I36af02140b5efa2cbd306f7f1fb6c26f93f37a29 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894416Reviewed-by:Kent Tamura <tkent@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Auto-Submit: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#711646}
Showing
Please register or sign in to comment