Use faster globs for template resolving
#33860

jhawthorn wants to merge jhawthorn:faster_find_templates into rails:master

We do not currently have an analysis of these two commits