D performance guideline (request)
downs
default_357-line at yahoo.de
Sat Apr 12 13:38:44 PDT 2008
I can only think of a few, sadly.
Use ~ as little as possible.
Try to determine the whole size beforehand, _then_ allocate an array, _then_ copy into it. Remember: Allocations are slow. Shit slow.
If you're creating multithreaded code that needs synchronized access, try to see if you can use TLS instead of synchronization.
Use the final keyword :)
Try both GDC and DMD. There might be significant performance differences.
--downs
More information about the Digitalmars-d
mailing list