Can nice D code get a bit slow?

FozzieBear FozzieBear at gmail.com
Thu Mar 9 10:18:58 UTC 2023


On Thursday, 9 March 2023 at 10:05:35 UTC, FozzieBear wrote:
> ..
> But that assumes you even know how long 7 nanoseconds are .. 
> cause I don't.

Well, it turns out, that light takes about a nanosecond to travel 
1 foot.

So that means, the performance impact from using a virutal call, 
would be equivalent to the amount of time light takes to travel 7 
feet.

I'm sure there are applications out there that might need to take 
this into account.

But for most, its trivial and irrelvant, and the programmer would 
benefit from focusing on more important things.








More information about the Digitalmars-d-learn mailing list