Slow performance compared to C++, ideas?

Manu turkeyman at gmail.com
Fri May 31 16:30:07 PDT 2013


On 1 June 2013 09:15, bearophile <bearophileHUGS at lycos.com> wrote:

> Manu:
>
>  On 1 June 2013 01:12, bearophile <bearophileHUGS at lycos.com> wrote:
>>
>>  Manu:
>>>
>>>
>>>  Frankly, this is a textbook example of why STL is the spawn of satan.
>>> For
>>>
>>>> some reason people are TAUGHT that it's reasonable to write code like
>>>> this.
>>>>
>>>>
>>> There are many kinds of D code, not everything is a high performance
>>> ray-tracer or 3D game. So I'm sure there are many many situations where
>>> using the C++ STL is more than enough. As most tools, you need to know
>>> where and when to use them. So it's not a Satan-spawn :-)
>>>
>>>
>> So why are we having this conversation at all then if faster isn't better
>> in this instance?
>>
>
> Faster is better in this instance.
> What's wrong is your thinking that the STL as the spawn of Satan in
> general.
>

Ah, but that's because it is ;)
Rule of thumb: never use STL in tight loops. problem solved (well,
mostly)...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130601/ed676642/attachment-0001.html>


More information about the Digitalmars-d mailing list