[PATCH] D26241: [ELF] Speed-up lld up to 5 times by replacing llvm:regex with simple string matcher.
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 2 07:45:46 PDT 2016
joerg added a comment.
Wouldn't it be better in general to handle fixed string prefixes directly in the matcher and only fallback to a more generic matcher if the prefix check passes? Independent of glob or regex, there are three basic situations:
- fixed string match --> done after the prefix match
- fixed prefix, wildcard rest --> done after the prefix match
- rest
I wonder how much of the performance benefit is obtained by just doing this peephole optimisation.
Repository:
rL LLVM
https://reviews.llvm.org/D26241
More information about the llvm-commits
mailing list