On 1/29/18 11:05 AM, Martin Tschierschke wrote:

I just took the time and minimized my application to see, why the compilation time has increased.

So when doing
time dub build

On my minimal project just one route for one page is set.

1: First inconvenience is, that I got

./../.dub/packages/vibe-d-0.8.2/vibe-d/tls/vibe/stream/openssl.d:467: error: undefined reference to 'SSLv23_client_method'...

Fixing this by using versions "VibeNoSSL"- a hint from the forum.

But my real question is, why is compiling and linking taking approximately 7 seconds, a few versions before a much bigger application only took ~ 4 seconds.

(even if only the app.d file was touched touch app.d)

diet-ng 1.4.4: target for configuration "library" is up to date.
vibe-d:utils 0.8.2: target for configuration "library" is up to date.
vibe-d:data 0.8.2: target for configuration "library" is up to date.
vibe-d:core 0.8.2: target for configuration "libevent" is up to date.
vibe-d:crypto 0.8.2: target for configuration "library" is up to date.
vibe-d:stream 0.8.2: target for configuration "library" is up to date.
vibe-d:textfilter 0.8.2: target for configuration "library" is up to date.
vibe-d:inet 0.8.2: target for configuration "library" is up to date.
vibe-d:tls 0.8.2: target for configuration "openssl" is up to date.
vibe-d:http 0.8.2: target for configuration "library" is up to date.
minimal ~master: building configuration "application"...
Using cached Diet HTML template index.dt...
Linking...
To force a rebuild of up-to-date targets, run again with --force.

real 0m6.627s
user 0m5.836s
sys 0m0.744s

I tried to reduce the number of vibe-d modules with:

  import vibe.http.router;
  import vibe.http.server;

Is everything needed? Like crypto? How to speed up compilation? The idea of splitting vibe.d was to speed things up, but the opposite has happen to me.

Have you tried compiling without checking for updates? Every time you
run dub, it checks online to see if there are changes that it may want
to download.

dub --skip-registry=standard

http://code.dlang.org/docs/commandline

Given that vibe.d has split, and depending on your internet speed, this
may be the cause.

-Steve