Re: performance problem in regex

2008-10-09 Thread Michel Talon
fulvio_esposito wrote: > I've got some performance hit using regex in libc on freebsd 6.3 Knowing that this regex implementation uses an NFA algorithm, while a DFA algorithm should be preferred, this is no big surprise. You can read the following references on the subject: http://swtch.com/~rsc/

Re: performance problem in regex

2008-10-09 Thread Ivan Voras
[EMAIL PROTECTED] wrote: > Hi all, > I've got some performance hit using regex in libc on freebsd 6.3. I've > done some test whit the patterns that l7-filter [http://l7-filter.sf.net] use > to recognize level 7 internet protocol. For example, with the skypeout > pattern, > regexec() takes more

performance problem in regex

2008-10-09 Thread [EMAIL PROTECTED]
Hi all, I've got some performance hit using regex in libc on freebsd 6.3. I've done some test whit the patterns that l7-filter [http://l7-filter.sf.net] use to recognize level 7 internet protocol. For example, with the skypeout pattern, regexec() takes more tha 0.1 sec to do its work. Is this a