Cleaned up C++
John Colvin via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 22 15:26:43 PDT 2015
On Wednesday, 22 April 2015 at 21:59:48 UTC, Ola Fosheim Grøstad
wrote:
> On Wednesday, 22 April 2015 at 20:36:12 UTC, John Colvin wrote:
>> Is it even possible to contrive a case where
>> 1) The default initialisation stores are technically dead and
>> 2) Modern compilers can't tell they are dead and elide them and
>> 3) Doing the initialisation has a significant performance
>> impact?
>>
>> The boring example is "extra code causes instruction cache
>> misses".
>
> Allocation of large arrays.
That doesn't really answer the question without some more
context. Can you give a specific example where all 3 points are
satisfied?
More information about the Digitalmars-d
mailing list