The issue is that currently, DMD doesn't inline lambdas. Doing this gives a definit performance hit.

http://d.puremagic.com/issues/show_bug.cgi?id=10848
https://d.puremagic.com/issues/show_bug.cgi?id=10864
https://github.com/D-Programming-Language/dmd/pull/2483