mproving the parsing code is left as an exercise to the reader.
</p>

<h2><a name="example5">Example 5: flyweight-based memoization</a></h2>

<p>
See <a href="../example/fibonacci.cpp">source code</a>.
</p>

<p>
<a href="http://en.wikipedia.org/wiki/Memoization">Memoization</a>
is an optimization technique consisting in caching
the results of a computation for later reuse; this can dramatically
improve performance when calculating recursive numerical functions,
for instance. <a href="tutorial/key_value.html