Wrote a blog post about CTFE and D

Philippe Sigaud philippe.sigaud at gmail.com
Sat Sep 1 00:33:17 PDT 2012


On Sat, Sep 1, 2012 at 3:46 AM, Rene Zwanenburg
<renezwanenburg at gmail.com> wrote:

> Use caching for data which is really expensive to calculate. For relatively
> trivial stuff like sin(), just calculate it during runtime.

On a somewhat related note, I remember realizing a few years ago that
it was faster to generate the first thousands of primes on the fly
than to pre-generate them and read them from a file.


More information about the Digitalmars-d-announce mailing list