Yes. in the foreach, a function is called for each one. In this code there is no function call, it is inlined for sure. Normally I would not say this is a good way to code (since it is much easier to make a mistake in code like this). That said, if we get it right once, all typed-API scalding jobs get a (probably very slight) performance boost.

I'll fix the typo.