Closing Notes
The best way to write good, efficient code for embedded systems is to
understand what the code you write really does. If you really want to allocate
an iterator, by all means use enhanced for loop syntax on a List; just make it a
deliberate choice, not an inadvertent side effect.
Forewarned is forearmed! Know what you're getting into! Insert your
favorite maxim here, but always think carefully about what your code is doing,
and be on the lookout for ways to speed it up.