commit | 60eb68a3dfa3707db6c3ca2c309be9efe45d5e06 | [log] [tgz] |
---|---|---|
author | Paul Thomson <paulthomson@google.com> | Mon Apr 29 11:41:39 2024 +0100 |
committer | Paul Thomson <paulthomson@google.com> | Tue Apr 30 16:14:54 2024 +0000 |
tree | 0d4695e26ca8928714d4680711566506739d71f6 | |
parent | 184350ef35492d7222371cf281290871d64e4aea [diff] |
Improve baseline matching perf We were previously calling PathVariables.toPathStringIfMatched to substitute path variables inside a loop, which can be very expensive, was somewhat unnecessary, and included redundant re-computation. This change makes it so we just look for a specific path variable prefix, and avoid re-computation (but the code is less concise). Bug: 336329409 Test: some new unit tests, plus existing Change-Id: Ie7c73d2adce848ae6617f11ff3c7fe3b8241d161
This project contains: