I have a function that accepts a big amount of data as a parameter (sometimes 1 megabyte) I was thinking which would be the fastest way to pass that data, dunno if I got this right, but here is what I think (functionality doesn't matter, all are the same in my app, since data is never used again after this function).// slow since the data must be copied to another location // in memory and passed to myfunctionfunction myfunction(data: string): boolean;   // faster since a pointer to the original data is passed to // the function and data is never copiedfunction myfunction(var data: string): boolean;   // no idea ??!!!function myfunction(const data: string): boolean;  
Fastest Parameter Passing in delphi 7?
delphi