Investigation: downsides of being generic and correct

Walter Bright newshound2 at digitalmars.com
Thu May 16 12:54:35 PDT 2013


On 5/16/2013 12:15 PM, Jonathan M Davis wrote:
> And if python is faster than
> D at something, odds are that either the code in question is poorly written or
> that whatever Phobos functions it's using haven't been properly optimized yet.

We should also be aware that while Python code itself is slow, its library 
functions are heavily optimized C code. So, if the benchmark consists of calling 
a Python library function, it'll run as fast as any optimized C code.



More information about the Digitalmars-d mailing list