База ответов ИНТУИТ

Introduction to performance optimization using Intel SW tools

<<- Назад к вопросам

Why performance is improved when invariant is moved out of the loop?

(Отметьте один правильный вариант ответа.)

Варианты ответа
because it is more effective to calculate them in another loop
because this values stay unchanged each iteration and could be evaluated outside of the loop only once(Верный ответ)
because invariant code has no sense and could be deleted
Похожие вопросы
What is loop invariant?
Loop invariant code motion
Why performance could be increased after the loop distribution?
What could be the reason for loosing performance while processing a big loop?
How dynamic linked list memory placement can be improved?
What is loop peeling?
What is loop unrolling for?
Loop optimizations are:
Loop vectorization is
How loop unrolling is provided?