High-performance code optimizations for mobile devices