On Tue, 24 Feb 2009 22:08:26 +0300, Mason Green <[email protected]>
wrote:
bearophile:
Thanks for the reply.
A JavaVM like HotSpot is more refined than the backend of DMD, its GC
is much more refined and more efficient, it's much better in inlining
virtual methods, its data structures are usually better
performance-tuned, etc. The D language is newer than Java, and it has
enjoyed far less money, developers and users.>
Very well put! But, do you know if there is a way to force inlining
where I want it? Someone mentioned to me that template mixins may
work...? I would rather not inline all the code by hand, as I would
like to trust the compiler.
Have you profiled your D code? What has the profiling told you? Have
you seen where you allocate memory, to move such allocations away from
inner loops, or just reduce their number? >
No, I have not profiled the D code other than using an FPS counter...
:-) To be honest, I'm fairly light on experience when it comes to
profiling. Do you have any suggestions on how to make it happen?
Bye,
Mason
DMD has profiling built-in. Just recompile your code with -profile flag,
run once and analyze output.