summing large arrays - or - performance of tight loops
Thomas Kuehne
thomas-dloop at kuehne.cn
Wed Apr 18 08:10:25 PDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've done a few tests on how DMD and GDC handle tight loops
and was surprised by the slow code DMD generates for "foreach".
results and source code:
http://dstress.kuehne.cn/benchmark/tight_loops/sum.html
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFGJkFyLK5blCcjpWoRAgM4AJ9JnbxtHTlBFwXdWfwfcuShxi/2iACfVaxI
ULxRdOI+28mzZXCbv8RiPO8=
=Z0K0
-----END PGP SIGNATURE-----
More information about the Digitalmars-d
mailing list