[all-commits] [llvm/llvm-project] 63eb04: [clang][modules] Avoid unnecessary writes of .time...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed May 10 10:42:20 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 63eb04a3683996db26dbf1534682c5696d93b080
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-05-10 (Wed, 10 May 2023)

  Changed paths:
    M clang/lib/Serialization/ASTReader.cpp

  Log Message:
  [clang][modules] Avoid unnecessary writes of .timestamp files

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.

Reviewed By: benlangmuir

Differential Revision: https://reviews.llvm.org/D149802

More information about the All-commits mailing list