5 ms·
It depends on your regex engine. The author here is concatenating all of the paths into a single pattern, an automata based engine would ideally compile away t
by tcwc 13y ago
It depends on your regex engine. The author here is concatenating all of the paths into a single pattern, an automata based engine would ideally compile away the disjunction and offer performance linear with the input path length.