You might improve the efficiency of the generated code using one of the following optimizations:
Unroll for-Loops
Inline Code
Avoid Data Copies of Function Inputs in Generated Code