[clang] [clang][deps][modules] Allocate input file paths lazily (PR #114457)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 31 13:18:08 PDT 2024


================
@@ -472,7 +465,9 @@ class FullDeps {
             JOS.attributeArray("command-line",
                                toJSONStrings(JOS, MD.getBuildArguments()));
             JOS.attribute("context-hash", StringRef(MD.ID.ContextHash));
-            JOS.attributeArray("file-deps", toJSONSorted(JOS, MD.FileDeps));
+            JOS.attributeArray("file-deps", [&] {
----------------
jansvoboda11 wrote:

I removed the sorting here to avoid having to allocate all the paths and store them into a container.

https://github.com/llvm/llvm-project/pull/114457


More information about the cfe-commits mailing list