[3.12] GH-105113: Improve performance of pathlib.PurePath.match()
#105114
+81
−14
pathlib.PurePath.match()
#105114