<html>
<head>
<style>
.sw_message P{margin:0px;padding:0px;}
.sw_message {FONT-SIZE: 12pt;FONT-FAMILY:Tahoma,Arial,Helvetica,sans-serif;background:white;}
.sw_message blockquote{margin-left:5px;padding-left:5px;border-left:2px solid #144fae;color: #144fae;}
.sw_message blockquote blockquote{border-left:2px solid #006312;color: #006312;}
.sw_message blockquote blockquote blockquote{border-left:2px solid #8e5656;color: #8e5656;}
.sw_message blockquote blockquote blockquote blockquote{border-left:2px solid #888;color: #888;}
</style>
</head>
<body class="sw_message">
<div>Hi,</div><div><br></div><div>This is a very impressive little blog about efficient string concatenation in Delphi. But it also applies to Free Pascal.</div><div><br></div><div> http://www.delphitools.info/2013/10/28/efficient-string-concatenation-in-delphi/ </div><div><br></div><div>I created two versions of the small test project and compiled it with FPC as follows.</div><div><br></div><div> $ fpc -O2 -al stringtest.pas</div><div> $ fpc -O2 -al stringtest2.pas</div><div><br></div><div>Then compared the two *.s assembler files. As the blog mentions, the "stupid looking" version generates a heck of a lot less ASM code. Umm. :)</div><div> </div><div id="editor_signature">Regards,<div> - Graeme -</div><div><br></div><br></div><div> </div>
</body></html>