Why aren't Ranges Interfaces?
Dicebot via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jun 26 12:48:51 PDT 2015
On Friday, 26 June 2015 at 19:26:57 UTC, Jack Stouffer wrote:
> How much of a performance hit are we talking about? Is the
> difference between using an interface and not using one
> noticeable?
It can be huge difference if you take inlning in mind. LDC is
capable of flattening most simple range-based pipelines into
simple in-place loop during optimization - something you can't do
with interfaces unless some sort of runtime profiling
optimization is involved.
More information about the Digitalmars-d-learn
mailing list