Delphi array constructors performance (or lack of)
In Delphi you can initialize a dynamic array in two ways, either manually or via the Create magic constructor
(more…)
In Delphi you can initialize a dynamic array in two ways, either manually or via the Create magic constructor
(more…)
DWScript source code recently introduced a newcomer: TRefCountedObject.
This base class takes the place of TObject in dwsUtils, and is now present throughout the DWScript code. What it adds is, well, a manually reference-counted class.
Delphi 2010 added support for the “as” to cast an interface reference to its implementation class.
Here is an alternative that can help both performance and correctness.
If you recognize the title of this article by Robert Lee, then chances are you’ve been around Delphi for a while! 🙂
Alas the optimalcode.com website and Robert Lee disappeared years ago without a trace, but the “Delphi Optimization Guidelines” (dating back from 2002-3003) has been safeguarded and preserved. Recently someone pointed to me that the mirror I had in my Links section had disappeared too…
On this StackOverflow question David Heffernan asked about a hack I’m using in DWScript’s UnifyAssignString.
…or when the old/new VCL mule shows it can still kick!
I was asked how hard it would be to do yet-another-Cover Flow-clone with VCL+GLScene, and how that would stand vs using FireMonkey on Windows.
André Mussche on Google+ investigated the performance of several Memory Managers for Delphi, in single-threaded & multi-threaded situations, with detailed results and charts on performance and memory usage.
Great work and interesting findings!
The 64bit introduced SSE2 maths, replacing the silicon-based implementations of the FPU by software.
(more…)