<div class="gmail_quote">On Wed, Apr 4, 2012 at 11:01 AM, Abhanshu Sharma <span dir="ltr"><<a href="mailto:abhanshu1@gmail.com">abhanshu1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am trying to reduce every fraction of second possible. Since there are very large of header files, I guess there would be some time getting wasted in stat-ing those files. I want clang to assume everything else is constant except source file. </blockquote>
</div><br><div>Stating is *extremely* fast, and does not have any bearing on the size of the header file.</div><div><br></div><div>Let me emphasize: *extremely* fast. 'git status' stats every single file in the entire git tree in a tiny fraction of a second.</div>
<div><br></div><div>Do you have a benchmark that clearly shows how much time is spent on 'stat' here? Are you using a network filesystem that makes stat system calls slow for some reason?</div>