Adding characters to the end of a string can be slow for long strings. This time penalty be avoided by using SetLength to set the maximum length of the string before the for loop. So grg999's code can be improved as follows:
Code:
var
s: string;
...
begin
s := '';
SetLength( s, LengthOfArrayX );
for i := 1 to LengthOfArrayX do
s := s + X[i];
end;
Unzip to ..\Delphi\Lib\FastMM4 preserving the folder structure, add that folder to Delphi's search path, and then modify the .DPR project file of any project you want to use it in and add [tt]FastMM4[/tt] as the first unit in the uses clause. ie.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.