Skip to content

Commit e4f4427

Browse files
authored
Remove erroneous mentions of SmallValue.cpp in "Troubleshoot template instantiation impact on build time" topic
1 parent fdd565c commit e4f4427

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/build-insights/tutorials/build-insights-template-view.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ The **Templates** view lists the template instantiations that contributed signif
129129
- **Instantiation File Name** shows where the template is defined.
130130

131131
:::image type="complex" source="./media/templates-view-before-fix.png" alt-text="Screenshot of the Build Insights Templates view showing expensive template instantiations." lightbox="./media/templates-view-before-fix.png":::
132-
The Templates view shows two template instantiations of struct S3 taking most (79.448 percent) of the build time. The Translation Unit column shows that both LargeValue.cpp and SmallValue.cpp are affected. The build time is 4.066 seconds.
132+
The Templates view shows two template instantiations of struct S3 taking most (79.448 percent) of the build time. The Translation Unit column shows that both LargeValue.cpp and TemplateAnalysis.cpp are affected. The build time is 4.066 seconds.
133133
:::image-end:::
134134

135135
- Sort by **Time** to find the templates that take the longest to instantiate.
@@ -147,7 +147,7 @@ To interpret the **Templates** view results:
147147

148148
## Improve build time by optimizing template instantiations
149149

150-
In the example, two template instantiations of `S3` take 79 percent of the build time. The **Translation Unit** column shows that both `SmallValue.cpp` and `LargeValue.cpp` cause this template instantiation.
150+
In the example, two template instantiations of `S3` take 79 percent of the build time. The **Translation Unit** column shows that both `LargeValue.cpp` and `TemplateAnalysis.cpp` cause this template instantiation.
151151

152152
The **Instantiation File Name** and the **Specialization Name** are the same for both entries, which means one expensive template instantiation that affects both source files. That's why the time for each of the two template instantiations is roughly equal. Including `Templates.h` in both source files causes one template instantiation to add significant time to the build.
153153

0 commit comments

Comments
 (0)