Slower than Python
deadalnix
deadalnix at gmail.com
Sun Mar 3 18:31:13 PST 2013
On Sunday, 3 March 2013 at 20:18:58 UTC, Walter Bright wrote:
> On 3/3/2013 7:09 AM, Jacob Carlborg wrote:
>> On 2013-03-02 17:48, John Colvin wrote:
>>
>>> It does.
>>>
>>> Failing to beat mature, optimised C is not anything to be
>>> ashamed of,
>>> but being slower than python would be an abject failure of D
>>> as a
>>> compiled, systems programming language.
>>
>> Then D needs to get faster, or we need to switch to C for some
>> std lib
>> functions. In that case, as Walter said, we have failed.
>
> Nothing in this thread suggests that D needs to switch its
> library implementations to C.
>
> Interestingly, I tried the indexOf() benchmark using C's
> memchr() and memcmp() from VC's runtime library. It was not
> faster than Andrei's optimized D one.
Maybe it is time to look at the python implementation and see why
it is faster.
More information about the Digitalmars-d
mailing list