Joseph Wakeling: > OK. I'm just bemused about why -- having solved the memory leak -- my D > code is running significantly slower than equivalent C++ code.
I'll try to take a look at your D code. In the meantime you can show the equivalent C++ code too, so I can compare. Note that dmd has an old backend, so it doesn't optimize as well as g++ or as llvm. LDC is often able to optimize better. Bye, bearophile