2 ms·
I assume compiling/translating globs to regexp also takes some time. I wonder if that could be meaningful in some pathological cases?
by zokier 10y ago
I assume compiling/translating globs to regexp also takes some time. I wonder if that could be meaningful in some pathological cases?
- burntsushi 10y agoIt's meaningful when you can't amortize compilation. I wouldn't call those pathological, but they seem niche. The translation from glob to regex at the syntax level is likely a non-factor. It's the compilation of the regex that probably starts to matter.