lkml.org 
[lkml]   [2004]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: stat very inefficient
On Wed, Jul 28, 2004 at 03:45:23PM -0700, David S. Miller wrote:

> "find . -type f" is probably the most often run command somewhere in
> a shell pipeline when I'm doing kernel work and grepping around.

Just How bad is it for you? I just tested stat on my crapbox and for
a short path 1M stats takes 0.5s and for a longer path (30 bytes or
so) 2.8s.

Sure, it's always nice to make things faster, but given that whatever
else I'm doing with this information will most likely be *many* times
slower I'm not sure if reducing it to zero would make any appreciable
difference here...


--cw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.066 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site