May 10, 2006
Editor's Note
Richard Vaughan's article, Hares, Tortoises, and the Decorator Pattern compares and tests overhead incurred in dynamic vs. static creation of decorator chains: sequences of objects of identical type but diverse function.
Vaughan proposes that, perhaps contrary to intuition, use of recursive templating to create static decorator chains offers the same advantages as dynamic approaches, plus several additional benefits, including simplified optimisation and reduced use of pointers; and can, in many cases, produce tighter code.
Posted by Kevin Carlson at 05:19 PM Permalink
|