performance of structs vs classes

Christian Köstlin christian.koestlin at gmail.com
Mon Sep 26 11:14:09 PDT 2011


I have this small program here, which compares the call-overhead of 
methods from classes to structs. I guess this always has to be, because 
of the "polymorphism" of methods of objects.

Is there something I can do to improve on the performance of methods 
calls with classes?

please see the source here:
https://gist.github.com/1242911


thanks in advance

christian


More information about the Digitalmars-d-learn mailing list