narrowed down the problem area
Sergey Gromov
snake.scaly at gmail.com
Sat Feb 16 07:45:16 PST 2008
bearophile <bearophileHUGS at lycos.com> wrote:
> Sergey Gromov:
> > D program is refactored so that all struct manipulations happen in-place,
> > without passing and returning by value. GDC has troubles inlining
> > static opCalls for some reason.
>
> Yep, you seem to have re-invented a fixed-size version of my TinyVector
> (I have added static opCalls yesterday, but I may have to remove them
> again).
One of programmer's joys is to invent a wheel and pretend it's better
than the others. ;)
> Timings of your code (that has a bug, see downs for a fixed version) on
The only bug I can see is printing out characters through text-mode
Windows stdout which expands every 0xA into "\r\n". This doesn't have
any impact on the benchmark.
--
SnakE
More information about the Digitalmars-d
mailing list