Slow performance compared to C++, ideas?

Simen Kjaeraas simen.kjaras at gmail.com
Mon Jun 3 11:17:21 PDT 2013


On 2013-06-03, 20:00, w0rp wrote:

> The virtual vs. non-virtual thing doesn't really matter that much. We're  
> talking about a 5% performance difference here, at most. You just type  
> 'final' a little bit here and there when you're near the end of writing  
> our your class hierarchy and get a little performance boost.

5%? Not when the function you call in an inner loop is virtual. I see up
to a 100% time increase for simple functions.

-- 
Simen


More information about the Digitalmars-d mailing list