diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2022-10-26 10:41:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 10:41:31 +0200 |
commit | b92bdf8c7202429d785e8c867bd83d92df1f3f4a (patch) | |
tree | 3973c91c562708f849adedafe4074d020121c8a7 /.github/workflows/install_spack.sh | |
parent | a2520e80c0b2bee62cc4d57090ded2422b96263a (diff) | |
download | spack-b92bdf8c7202429d785e8c867bd83d92df1f3f4a.tar.gz spack-b92bdf8c7202429d785e8c867bd83d92df1f3f4a.tar.bz2 spack-b92bdf8c7202429d785e8c867bd83d92df1f3f4a.tar.xz spack-b92bdf8c7202429d785e8c867bd83d92df1f3f4a.zip |
Relocation regex single pass (#33496)
Instead of looping over multiple regexes and the entire text file
contents, create a giant regex with all literal prefixes and do a single
pass over files to detect prefixes. Not only is a single pass faster,
it's also likely that the regex is compiled better, given that most
prefixes share a common ... prefix.
Diffstat (limited to '.github/workflows/install_spack.sh')
0 files changed, 0 insertions, 0 deletions