我们需要清除Integer
和string
变量吗?
我的意思是,我们使用整数变量后,必须将其设置为零,并且还必须清除字符串变量以提高存储性能等?还是什么都没有发生?
编辑:
例如,此代码在服务器中运行24h / 7,请勿关闭或重新启动服务器,并且在5分钟内调用此过程超过3000次。
procedure somejob;
i:integer;
Test1,Test2,Test3,Test4:string;
begin
{Some more job....}
i := {BIG INTEGER};
Test1:= {BIG STRING};
Test2:= {BIG STRING};
Test3:= {BIG STRING};
Test4:= {BIG STRING};
{some more job....}
{we have to clear these variables or not?}
i:= 0;
Test1:= '';
Test2:='';
Test3:='';
Test4:='';
end;