Table lookups - this is pretty definitive

Walter Bright newshound2 at digitalmars.com
Mon Apr 7 11:12:43 PDT 2014


On 4/7/2014 2:41 AM, "Ola Fosheim Grøstad" 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
>> on.  Unfortunately for your small program, gcc is too smart and
>> optimises everything away.
>
> Haha, that's funny. But why don't you put the data in a separate compilation unit?

True, it's pretty easy to defeat that optimization.


More information about the Digitalmars-d mailing list