Can nice D code get a bit slow?
Hipreme
msnmancini at hotmail.com
Wed Mar 8 12:46:53 UTC 2023
On Wednesday, 8 March 2023 at 10:49:32 UTC, Markus wrote:
> Hi, sorry for the broad and vague question. I have read in some
> reddit post about benchmarks, that some code didn't use the
> final keyword on methods in a sense that final would make it
> faster, I believe.
>
> [...]
Don't bother with it. This kind of optimization is done when
compiling with -O, and I really doubt about your bottleneck being
that you're calling a virtual call. Wait when you actually need
to optimize before making your code ugly.
More information about the Digitalmars-d-learn
mailing list