Hi,<div><br></div><div>I know that in normal cases those things has no matters, but I do much things in OnPaint so each millisecond is matter. For example, strings comparisons:</div><div><br></div><div>What is faster if string is "big":</div>
<div><br></div><div>if s<>'' then....</div><div><br></div><div>or:</div><div><br></div><div>if Length(s)>0 then...</div><div><br></div><div><br></div><div>Same thing with incrementations:</div><div><br></div>
<div>i := i + 1</div><div><br></div><div>or:</div><div><br></div><div>Inc(i)</div><div><br></div><div>or:</div><div><br></div><div>i += 1;</div><div><br></div><div>Regards</div>