External Polymorphism and C++ Type Erasure - A Very Useful Dance of Design Patterns
summary
Claims that external polymorphism plus type erasure beats inheritance+virtual on speed and flexibility, with microbenchmarks and production code proving better performance than inheritance + virtual. Presents a reusable framework that implements a configurable Value Manager to choose small-buffer, shared-pointer or heap policies, supports move-only targets, reduces template bloat and preserves value semantics, and shows mature production usage and measurable codegen and runtime wins.
AI-written summary · about
