regex and performance

Richard Sharpe (sharpe@ns.aus.com)
Fri, 01 May 1998 11:49:07 +0900

Message-Id: <3.0.5.32.19980501114907.00869a30@mail.adelaide.on.net>
Date:	Fri, 01 May 1998 11:49:07 +0900
To:	samba-technical@samba.anu.edu.au
From:	Richard Sharpe <sharpe@ns.aus.com>
Subject: regex and performance

Hi,

I have done some testing with clitar with regex and mask_match.

Boy, is regexec slow :-(

mask_match is much faster, but you cannot do the following with mask_match:

smbclient \\\\serv\service -TcrX fred.tar ".*.(obj|lis)" to exclude all
.obj and .lis files ...

I have found syntax differences as well, where Linux will accept
"*.(obj|lis)" while Digital UNIX wants ".*.(obj|lis)"

Regards
-------
Richard Sharpe, sharpe@ns.aus.com, NIC-Handle:RJS96
NS Computer Software and Services P/L,
Ph: +61-8-8281-0063, FAX: +61-8-8250-2080,
Linux, AIX, Digital UNIX, ULTRIX, SunOS, Samba, Apache, NetScape,
StrongHold, Perl, C, PPP ...