This is an archive of the discontinued LLVM Phabricator instance.

[clang][modules] Avoid unnecessary writes of .timestamp files
ClosedPublic

Authored by jansvoboda11 on May 3 2023, 4:51 PM.

Details

Summary

Clang currently updates the mtime of .timestamp files on each load of the corresponding .pcm file. This is not necessary. In a given build session, Clang only needs to write the .timestamp file once, when we first validate the input files. This patch makes it so that we only touch the .timestamp file when it's older than the build session, alleviating some filesystem contention in clang-scan-deps.

Diff Detail

Event Timeline

jansvoboda11 created this revision.May 3 2023, 4:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2023, 4:51 PM
Herald added a subscriber: ributzka. · View Herald Transcript
jansvoboda11 requested review of this revision.May 3 2023, 4:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2023, 4:51 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
benlangmuir accepted this revision.May 3 2023, 5:03 PM
This revision is now accepted and ready to land.May 3 2023, 5:03 PM