<br><br><div class="gmail_quote">On Wed, Apr 4, 2012 at 2:38 PM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><div class="gmail_quote">On Wed, Apr 4, 2012 at 11:01 AM, Abhanshu Sharma <span dir="ltr"><<a href="mailto:abhanshu1@gmail.com" target="_blank">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><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></blockquote><div>Yes I am using FUSE filesystems. I am not sure how slow stats are in my case. I can check that. But it looks like I have already stretched clang for my use to its maximum. </div>
</div><br><br clear="all"><div><br></div>-- <br>Warm Regards,<br>Abhanshu<br>