[all-commits] [llvm/llvm-project] aee51b: [clang-tidy][NFC] optimize cache for config option...
Congcong Cai via All-commits
all-commits at lists.llvm.org
Fri Jan 10 07:42:51 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aee51b4d75089b4e7d9eb20877e2adbf6adea999
https://github.com/llvm/llvm-project/commit/aee51b4d75089b4e7d9eb20877e2adbf6adea999
Author: Congcong Cai <congcongcai0907 at 163.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
M clang-tools-extra/clang-tidy/ClangTidyOptions.h
Log Message:
-----------
[clang-tidy][NFC] optimize cache for config option (#121406)
Current implement will cache `OptionsSource` for each path, it will
create lots of copy of `OptionsSource` when project has deep nested
folder structure.
New implement use vector to store `OptionsSource` and only cache the
index. It can reduce memory usage and avoid meaningless copy.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list