Would I benefit in performance by setting my procedures to be of the following definition :
procedure Process1(const pParam1 : Integer; const pParam2 : String)
instead of :
procedure Process1(pParam1 : Integer; pParam2 : String)
If I am sure that I will not be changing the values of the parameters within the scope of the procedure(s) (in which case I would pass the parameters in as 'var').
Would I see better performance if I was indicating that these parameters are 'const' ?
Thanks in advance
Steve
procedure Process1(const pParam1 : Integer; const pParam2 : String)
instead of :
procedure Process1(pParam1 : Integer; pParam2 : String)
If I am sure that I will not be changing the values of the parameters within the scope of the procedure(s) (in which case I would pass the parameters in as 'var').
Would I see better performance if I was indicating that these parameters are 'const' ?
Thanks in advance
Steve