D performance guideline (request)
Robert Fraser
fraserofthenight at gmail.com
Sat Apr 12 17:20:00 PDT 2008
bobef wrote:
> Hi,
>
> [...]
>
> Thanks,
> bobef
I'm no expert but (as others have pointed out):
- Algorithmic efficiency is more important than saving cycles.
- Memory/cache efficiency is more important than saving cycles
- Try using memory-efficient data structures like Judy (
http://judy.sourceforge.net/ ).
- Compile with both DMD and GDC
- Reduce heap allocations as much as possible. For example, when
possible, use scope for your classes (since this means they will be
allocated on the stack).
So, basically, what everyone else said.
More information about the Digitalmars-d
mailing list