$LocalSymbols Compiler Directive
If $DebugInfo
is enabled, you can also enable
$LocalSymbols
to store information about
subroutines, types, variables, and source line numbers in a unit. The
symbol information is stored in the .dcu file
and has no impact on the performance or size of the final
.exe or .dll
file. Delphi ignores the
$LocalSymbols
compiler directive when
$DebugInfo
is disabled.
In very large projects, you might save a little bit of time and disk
space by disabling $LocalInfo
, but in most cases,
the savings are minuscule and not worth the effort to disable the
directive.