PRF014
Large parameter passed by value
Object Pascal — Delphi & Free Pascal
Warning
Performance
Passing large records or arrays by value copies the entire structure on each call
passing large records or arrays by value copies the entire structure on each call.
Why this severity
passing large records or arrays by value copies the entire structure on each call.
Known false positives
small records where copying is cheaper than indirection overhead.
Remediation example
procedure Process(const Rec: TLargeRecord); // use const to pass by reference
Related Performance rules