RejectedSoftware Forums

Sign up

some templates being compiled multiple times

This is just a curiosity and I don't know if this is an issue.
Here is the usual output when I compile:

Compiling Diet HTML template home.dt...
Compiling Diet HTML template about.dt...
Compiling Diet HTML template contact.dt...
Compiling Diet HTML template showtutor.dt...
Compiling Diet HTML template tutorslist.dt...
Compiling Diet HTML template fortutors.dt...
Compiling Diet HTML template contactedus.dt...
Compiling Diet HTML template edittutor.dt...
Compiling Diet HTML template fortutors.dt...
Compiling Diet HTML template edittutor.dt...
Compiling Diet HTML template showtutor.dt...
Compiling Diet HTML template showtutorratings.dt...
Compiling Diet HTML template contacttutor.dt...
Compiling Diet HTML template contactedtutor.dt...
Compiling Diet HTML template ratetutor.dt...
Compiling Diet HTML template showtutor.dt...
Compiling Diet HTML template showtutor.dt...
Compiling Diet HTML template ratetutor.dt...
Compiling Diet HTML template fortutors.dt...
Compiling Diet HTML template login.dt...
Compiling Diet HTML template login.dt...
Compiling Diet HTML template showtutor.dt...
Compiling Diet HTML template login.dt...
Linking...
To force a rebuild of up-to-date targets, run again with --force.
Running ./fyt
Listening for requests on http://[::1]:8080/
Listening for requests on http://127.0.0.1:8080/

I am just wondering why some templates compile multiple times. Is this an optimization issue or is this just normal? Do I need to tweak something in a configuration file?

Anyway, I have just uploaded the most recent iteration of this site to my Linode box:

https://findyourtutor.info/

I would like to show my code as I am a newbie in Vibe.d and I need somebody to help make my code more robust, but since I am a newbie, I am also ashamed to show my code.

But please visit my site and tell me if something's awry.

Thanks!

Re: some templates being compiled multiple times

Am 02.08.2017 um 19:00 schrieb Rey Valeza:

This is just a curiosity and I don't know if this is an issue.
Here is the usual output when I compile:

Compiling Diet HTML template home.dt...
Compiling Diet HTML template about.dt...
Compiling Diet HTML template contact.dt...
Compiling Diet HTML template showtutor.dt...
Compiling Diet HTML template tutorslist.dt...
Compiling Diet HTML template fortutors.dt...
Compiling Diet HTML template contactedus.dt...
Compiling Diet HTML template edittutor.dt...
Compiling Diet HTML template fortutors.dt...
Compiling Diet HTML template edittutor.dt...
Compiling Diet HTML template showtutor.dt...
Compiling Diet HTML template showtutorratings.dt...
Compiling Diet HTML template contacttutor.dt...
Compiling Diet HTML template contactedtutor.dt...
Compiling Diet HTML template ratetutor.dt...
Compiling Diet HTML template showtutor.dt...
Compiling Diet HTML template showtutor.dt...
Compiling Diet HTML template ratetutor.dt...
Compiling Diet HTML template fortutors.dt...
Compiling Diet HTML template login.dt...
Compiling Diet HTML template login.dt...
Compiling Diet HTML template showtutor.dt...
Compiling Diet HTML template login.dt...
Linking...
To force a rebuild of up-to-date targets, run again with --force.
Running ./fyt
Listening for requests on http://[::1]:8080/
Listening for requests on http://127.0.0.1:8080/

I am just wondering why some templates compile multiple times. Is this an optimization issue or is this just normal? Do I need to tweak something in a configuration file?

Anyway, I have just uploaded the most recent iteration of this site to my Linode box:

https://findyourtutor.info/

I would like to show my code as I am a newbie in Vibe.d and I need somebody to help make my code more robust, but since I am a newbie, I am also ashamed to show my code.

But please visit my site and tell me if something's awry.

Thanks!

In general the compiler will choose when to compile a certain template
and something strange could be going on, but there are usually just two
reasons for why a single file is compiled twice. Either there are
actually two render calls for the same file with different arguments, or
there is a translation context with multiple languages. Each template
will then be compiled once for each language. Could any of these apply
in this case?