On 04/27/15 19:49, Jens Bauer via Digitalmars-d-learn wrote:
I was wondering if there's a way to reduce my bulky startup files a bit.

On Wednesday, 29 April 2015 at 13:58:14 UTC, Artur Skawina wrote:
   mixin(VectorFuncs!(q{
      PTR stack = {`_stack`};
      EXC Reset_Handler = {`defaultResetHandler`};
      EXC NMI_Handler;
      EXC HardFault_Handler;
      PAD pad01;
      PAD pad02;
      //...
   }));

For some reason, my build time has increased dramatically...

Building with 1 vector takes 0.6 seconds.
Building with 2 vector takes 0.7 seconds.
Building with 4 vector takes 0.9 seconds.
Building with 8 vector takes 1.1 seconds.
Building with 16 vectors takes 1.7 seconds.
Building with 32 vectors takes 3.4 seconds.
Building with 64 vectors takes 12.4 seconds.
Building with 112 vectors takes 55.5 seconds.
Building with 113 vectors takes 56.7 seconds.

... Two foreach loops shouldn't take that long, right ?
The generated code appears to be correct, though.

Reply via email to