perf(apple): stop repeating the archive path in Interface Builder evidence (#1460)

Every Interface Builder node and edge evidence record prefixed its
description with the archive's relative path, which artifact_path in the
same record already states. Bundles carry thousands of objects across
localized nibs, so the repeated path made up 6-10% of
decode_interface_builder output (XLD: 7.38 MB to 6.62 MB).

Descriptions now name only the decoded item, such as "object 81" or
"outlet o_quality".

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kaoru0822
2026-10-09 23:21:24 -07:00
committed by GitHub
co-authored by Claude Opus 5.5
parent ef96657d6b
commit b118f04492
2 changed files with 46 additions and 1 deletions
+3 -1
View File
@@ -72,7 +72,9 @@ export const buildInterfaceBuilderAnalysis = (input: {
const evidenceFor = (description: string) => [
{
kind: "interface_builder_resource" as const,
description: `${document.relativePath}: ${description}`,
// artifact_path names the archive; repeating it here cost a path per
// node and edge.
description,
location: { address: null, file_offset: null },
artifact_path: document.relativePath,
artifact_sha256: document.archiveSha256,