[llvm-commits] [PATCH] Make Path::GetMainExecutable faster onOSX

Nuno Lopes nunoplopes at sapo.pt
Tue Sep 8 15:39:52 PDT 2009


>> Wow, nice catch -- I've known something was wrong because of the
>> amount of system time it consumes, but hadn't dug in. This makes your
>> patch an even bigger win w/ more threads, its almost 50% faster for
>> me.
>>
>> Looking at the code now I'm wondering if it is even right that
>> clang-cc uses the main executable path to resolve headers. I think
>> this change got made to accommodate symlinked binaries, but I'm not
>> sure that "GetMainExecutablePath" is really the right way to find
>> this. Chris?

You've some info here:
http://unixjunkie.blogspot.com/2006/02/char-apple-argument-vector.html
http://unixjunkie.blogspot.com/2006/10/update-char-apple-argument-vector.html

The comments in the 2nd post explain the whole problem & solutions.
Nuno 




More information about the llvm-commits mailing list