OPTI10-Managed local variable that can be declared inline

Top  Previous  Next

 

Managed local variables that can be declared inline

 

This section lists local managed variables that can benefit from being declared inline instead of in the main var-section. For example, if the variable is only needed in some section of the function, the initialization-finalization code only needs to be run under some circumstances.

 

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