Here I will share my current workflow for low-level optimization, which these days is basically a roundtrip between Delphi, SamplingProfiler, ChatGPT and Godbolt.
This can allow you to produce code that runs faster than any single C compiler, while staying with Delphi code. (more…)
After years of beta, the 23.1.23 version of SamplingProfiler is available from its downloads & changelog page.
The download ZIP includes both 32 & 64bit executables.
The main change since the last version is that the code to detect Delphi browse paths was rewritten to accommodate future (unreleased) Delphi versions… as long as the registry names and keys follow the current logic. The previous version supported all Delphi versions, but you had to manually specify browse paths.
Passing parameters as “const” is a classic Delphi optimization trick, but the mechanisms behind that “trick” go beyond cargo-cult recipes, and may actually stumble into the “good practice” territory.