Slow performance compared to C++, ideas?

FeepingCreature default_357-line at yahoo.de
Thu May 30 20:27:57 PDT 2013


On Friday, 31 May 2013 at 03:26:16 UTC, FeepingCreature wrote:
> There's some issues involving the use of array literals - they
> get allocated on the heap for no clear reason. Create a version
> of your vector constructor that uses four floats, then call that
> instead in your line 324.

Addendum: in general, always, **ALWAYS PROFILE BEFORE 
OPTIMIZING**. I'm sure there's good profilers for OSX, or you can 
just use -g -pg and gprof. (perf is good under linux!)


More information about the Digitalmars-d mailing list