TStringBuilder – Optimizing Delphi’s strings for speed
Today I needed a function that will wrap a string (a contiguous block of characters with no spaces) after 80 characters. Not only that I have found SysUtils.WrapText unsuitable (it can only wrap text IF the text contains spaces) but it is also terrible slow. So I build my own function: function WrapString(CONST s: string; […]
TStringBuilder – Optimizing Delphi’s strings for speed Read More »