Passing array as const slows down code?

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Fri Apr 27 10:19:01 PDT 2012


On 27/04/12 18:37, Joseph Rushton Wakeling wrote:
> I suppose I could get reputation() to _return_ reputationObject and
> reputationUser instead of having them called via functions; but I'd be worried
> it would slow everything down substantially.

... well what do I know.  I tweaked it to do just that, and it runs at exactly 
the same speed.
https://github.com/WebDrake/Dregs/commit/9926094645118ecf03c3bedd57f923b02e2bb7fc


More information about the Digitalmars-d-learn mailing list