OPTI11-Managed local variable is inlined in loop

Top  Previous  Next

 

Managed local variables is inlined in loop

 

This section lists local variables that instead of being declared in the main var-section, are declared inline.

They are declared inside a loop, which decreases performance. The reason is that initialization-finalization of the variable has to be done for each loop iteration.

 

Managed variables are strings, interfaces, dynamic arrays and records that contain managed fields.

 

Inline variable declarations were introduced in Delphi 10.3, so this report section is not relevant for older targets.

 

See also:

 

Optimizations