[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Relative speed of globbing and regex implementations
From: |
James Youngman |
Subject: |
Relative speed of globbing and regex implementations |
Date: |
Fri, 7 Dec 2007 00:11:14 +0000 |
I notice that the gnulib fnmatch implementation is slower than the
regex implementation, at least in those cases where a pattern can be
compiled once and offered thousands of times. Very roughly, I'd guess
that the fnmatch implementation takes about 1.4x the time that the
regex implementation takes.
Is there a known reason for this, is it avoidable, or are we stuck
with it? I was considering figuring out how to rewrite globs as
regexes, but thought I'd ask first...
Thanks,
James.
- Relative speed of globbing and regex implementations,
James Youngman <=