Re: Empy program running time

2011-08-19 Thread Steven Schveighoffer
On Fri, 19 Aug 2011 01:29:05 -0400, Marco Leise wrote: Am 29.07.2011, 17:23 Uhr, schrieb Steven Schveighoffer : On Fri, 29 Jul 2011 10:50:52 -0400, bearophile wrote: Steven Schveighoffer: For example, D needs to call all the module ctors and do the import cycle detection algorithm.

Re: Empy program running time

2011-08-18 Thread bearophile
Marco Leise: > You think in the wrong category. Imagine where this would matter, where > you would invoke a program multiple times. I agree, and I think 0.11 seconds (on a slow PC) is a bit too much. I think there is something smelly that will need tuning/optimization. Bye, bearophile

Re: Empy program running time

2011-08-18 Thread Marco Leise
Am 29.07.2011, 17:23 Uhr, schrieb Steven Schveighoffer : On Fri, 29 Jul 2011 10:50:52 -0400, bearophile wrote: Steven Schveighoffer: For example, D needs to call all the module ctors and do the import cycle detection algorithm. Even for an empty program? Yes. I bet even an empty

Re: Empy program running time

2011-07-29 Thread Steven Schveighoffer
On Fri, 29 Jul 2011 10:50:52 -0400, bearophile wrote: Steven Schveighoffer: For example, D needs to call all the module ctors and do the import cycle detection algorithm. Even for an empty program? Yes. I bet even an empty program has on the order of 50 module ctor/dtors to run. A

Re: Empy program running time

2011-07-29 Thread bearophile
Steven Schveighoffer: > For example, D needs to call all the module ctors and do the import cycle > detection algorithm. Even for an empty program? > 0.11 seconds is not unreasonable. It means about 170_000_000 CPU clock ticks, to me it seems a lot. > But I'll also stress that timings at t

Re: Empy program running time

2011-07-29 Thread Steven Schveighoffer
On Fri, 29 Jul 2011 09:37:36 -0400, bearophile wrote: On an oldish Windows PC an empty C program generated by GCC takes about 0.03 seconds to run. An empty D2 program runs in about 0.11 seconds. Is this expected/good/acceptable/fixable? It is expected. A d program must initialize both t

Re: Empy program running time

2011-07-29 Thread Pelle
On Fri, 29 Jul 2011 15:37:36 +0200, bearophile wrote: On an oldish Windows PC an empty C program generated by GCC takes about 0.03 seconds to run. An empty D2 program runs in about 0.11 seconds. Is this expected/good/acceptable/fixable? Bye, bearophile That's a lot better than I expect

Empy program running time

2011-07-29 Thread bearophile
On an oldish Windows PC an empty C program generated by GCC takes about 0.03 seconds to run. An empty D2 program runs in about 0.11 seconds. Is this expected/good/acceptable/fixable? Bye, bearophile