[cfe-dev] Precompiled headers with libclang

Abhanshu Sharma abhanshu1 at gmail.com
Wed Apr 4 02:11:55 PDT 2012


On Wed, Apr 4, 2012 at 2:38 PM, Chandler Carruth <chandlerc at google.com>wrote:

> On Wed, Apr 4, 2012 at 11:01 AM, Abhanshu Sharma <abhanshu1 at gmail.com>wrote:
>
>> 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.
>
>
> Stating is *extremely* fast, and does not have any bearing on the size of
> the header file.
>
> Let me emphasize: *extremely* fast. 'git status' stats every single file
> in the entire git tree in a tiny fraction of a second.
>
> 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?
>
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.



-- 
Warm Regards,
Abhanshu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120404/ccf2d6c1/attachment.html>


More information about the cfe-dev mailing list