Back

PRF007

Unnecessary Format call

Object Pascal — Delphi & Free Pascal
Info
Performance

Format with a single %s substitution adds overhead with no formatting benefit over concatenation

Format with a single %s substitution adds overhead with no formatting benefit over concatenation.

Why this severity

Format with a single %s substitution adds overhead with no formatting benefit over concatenation.


Known false positives

none expected; this pattern is always replaceable by simple concatenation.

Remediation example

S := Value; // instead of Format('%s', [Value])

Reconnecting… Connection lost. Reload