[Issue 255] Odd performance difference w/ complex doubles.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 16 20:53:24 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=255
------- Comment #2 from godaves at yahoo.com 2006-07-16 22:53 -------
I timed it (the exact code posted) on Linux/P4 and Win32/AMD64 using an
external timer in both cases, and in both cases the difference was as large
over several runs, about 5x. I was using 1000 as n.
When I added your timer function the difference virtually disappeared (with it
running at the better time once your internal timer was added).
Sure looks like an alignment issue, which can be transitive and sensitive to
seemingly unrelated changes in the code elsewhere (which makes it all the more
frustrating). I've run into this with math.pow() too.
--
More information about the Digitalmars-d-bugs
mailing list