---
title: "August 21, 2026"
url: https://daily.dev/posts/august-21-2026-rojhbqsrr
source_url: https://devblogs.microsoft.com/oldnewthing/20260821-00
type: article
source: "The Old New Thing"
published: 2026-08-21T14:42:35.788Z
updated: 2026-08-21T14:55:35.572Z
tags: ["performance", "c++"]
reading_time: 1
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# August 21, 2026

**[The Old New Thing](https://daily.dev/sources/oldnewthing)** · 1 min read · 0 upvotes · 0 comments

## Summary

A practical walkthrough applying template bloat reduction principles in C++ by factoring out the type-dependent portions of a templated function, continuing a series on minimizing code size caused by template instantiation.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devblogs.microsoft.com/oldnewthing/20260821-00>

## Questions this post answers

### How can I reduce binary size caused by C++ template instantiation bloat?

Factor out the type-independent portions of a templated function into a separate non-template function or base class, so the compiler only instantiates the type-dependent parts per type. This avoids duplicating identical machine code across every template instantiation, since the shared logic gets compiled once and reused, reducing overall binary size.

_Developers optimizing C++ binary size track practical template techniques like this on daily.dev._

## Similar posts on daily.dev

- [August 20, 2026](https://daily.dev/posts/august-20-2026-zjzarhijy) · The Old New Thing · 1 upvotes · 0 comments
- [July 21, 2026](https://daily.dev/posts/july-21-2026-exucjgquw) · The Old New Thing · 0 upvotes · 0 comments

---

Tags: [#performance](https://daily.dev/tags/performance), [#c++](https://daily.dev/tags/c++)

[View this post on daily.dev](https://daily.dev/posts/august-21-2026-rojhbqsrr)
