Array assigns performance

bearophile bearophileHUGS at lycos.com
Thu Jun 2 13:02:02 PDT 2011


Robert Jacques:

> bearophile, array literals default to dynamic arrays, which require an  
> allocation, etc. IIRC, originally, literals specified fixed sized arrays,  
> but was considered unexpected behavior and reduced usability and was  
> changed.

Here I'm asking for an optimization. This means adding some new extra code to the front-end to recognize a common pattern, and compile (replace) it with something simpler and more efficient.

Bye,
bearophile


More information about the Digitalmars-d mailing list