gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Slow inventories on large source trees


From: Aaron Bentley
Subject: Re: [Gnu-arch-users] Slow inventories on large source trees
Date: Thu, 22 Apr 2004 09:24:04 -0400
User-agent: Mozilla Thunderbird 0.5 (X11/20040309)

Andrew Suffield wrote:
On Wed, Apr 21, 2004 at 12:48:55PM -0400, Aaron Bentley wrote:

According to gprof, it's spending 78% of its time doing regex matching in filename_matches. The lion's share of that is in mem_set0, but you've got to consider that it's doing 9 hundred thousand calls.


I would be interested to know how memset(..., 0, ...) behaves (#define
mem_set0 to that), since at least in theory, mem_set0 is between 10
and 100 times slower than memset() on an athlon (and around 10 times
on a pentium 3 or 4).

tla inventory is about 50% faster when memset is substituted in the regexp functions:

real    0m4.192s
user    0m4.110s
sys     0m0.080s

(hot cache)

address@hidden/hackerlab--hacked--0--patch-1

Aaron
--
Aaron Bentley
Director of Technology
Panometrics, Inc.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]