Yeah doing optimizations in a compiler on things like loops, addition, or string layouts is never free.