[cfe-dev] [RFC] Embedding compilation database info in object files.
David Chisnall
David.Chisnall at cl.cam.ac.uk
Fri Jul 19 01:02:14 PDT 2013
On 18 Jul 2013, at 13:08, Manuel Klimek <klimek at google.com> wrote:
>> Wouldn't this approach (appending to a compilation database) have issues with filesystem contention and/or write atomicity in multicore/distributed builds (without involving a "real database" for the database storage)?
>
> On Unix systems we can handle that via file locks. On windows we'd need a windows expert :P
Adding a mutex does not solve the problem of contention, it just eliminates races. It still adds a serialising step to an inherently parallel process, and you should ask Amdahl why this is a bad idea.
David
More information about the cfe-dev
mailing list