Looking at how the patterns are parsed, the end result for /
is simpler than for *
so the slash could be slightly more efficient. There’s no reason for that, we could simply optimise one to the other, if the difference was relevant or even measurable (which I doubt it is). The asterisk feels more obvious as “everything” to me, though.
2 Likes