Benchmark results: delegate fast, functor no faster, memory allocation slow. Really slow.

2009-10-15 Thread downs
Two discoveries were made from this benchmark. 1) There is no appreciable speed difference between delegates and functors. I re-ran the benchmark several times; sometimes one was faster, sometimes the other - no clear advantage was discernible. The visible differences can be blamed on experimen

Re: Benchmark results: delegate fast, functor no faster, memory allocation slow. Really slow.

2009-10-15 Thread downs
On consideration, this wasn't a test of the two methods at all, but a test of the compiler's ability to inline. Disregard it.