Struct method access speed
"Jérôme M. Berger"
jeberger at free.fr
Wed Dec 26 23:53:06 PST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
bearophile wrote:
> M. Berger:
>> For DMD, you actually fill the
>> vector twice in the first loop (once with zeroes, then a second time
>> with values) and it runs about twice as long as the second loop
>> which is normal.
>
> I don't agree. The method "create" is called only once, so it must add nearly nothing (about 1/20000) to the first timing. Please correct me if you think I am wrong.
>
You're right of course. I hadn't seen that. Note to self: never
post just before going to bed...
Jerome
- --
+------------------------- Jerome M. BERGER ---------------------+
| mailto:jeberger at free.fr | ICQ: 238062172 |
| http://jeberger.free.fr/ | Jabber: jeberger at jabber.fr |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFHc1nid0kWM4JG3k8RAq9qAKCXrUaY3scDznUZF5bgxIjgrEkMCACdEHRA
fcmQii/UkUhOXR2lBv0P3OA=
=E4Em
-----END PGP SIGNATURE-----
More information about the Digitalmars-d
mailing list