[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
regexec() performance problem
From: |
Jan Fedak |
Subject: |
regexec() performance problem |
Date: |
Tue, 23 Apr 2002 10:48:43 +0200 |
User-agent: |
Mutt/1.2.5.1i |
Hi guys.
I have serious performance problems with regexec(). I attach a short
program that will try to match a regular expression against ~130K text.
On my computer I never had enough patience to wait for it to complete.
I know that in this particular case I could use simple strstr() and have
my job done in no time but still I wonder whether some profiling
wouldn't reveal ways to make glibc implementation of regular expressions
faster.
I didn't do much research, I just quickly looked at it in debugger and I
noticed that quite a lot of time is spent in functions for multibyte
characters -- just my idea where performance problems could come from...
Thanks for your work and any response.
Jan
--
Jan Fedak mailto:address@hidden
Linux - the ultimate NT Service Pack.
- regexec() performance problem,
Jan Fedak <=