-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Efficiency problems after using a full mustache template #117
Comments
After the last commit I have realized:
|
We can also try and use a different templating system, like
Template::Classic.
|
In Pod::To::HTML too? |
We should detach this from Pod::To::HTML, maybe. |
We generate around 1700 html files, with basically the same menu and submenu for every page (except for the selected entry). With this change, we reduce the processing time of Template::Mustache.
Now the default template has two different template specifications, but hey, it's faster.
I have used Template::Classic here: https://github.com/Raku/Documentable/tree/feat/use-template-classic. Results:
|
It's a bit less than even pre-population + template caching, correct? |
I noticed %data<rows> = (gather { ...; take { :$record } }).hyper; I use it this way in |
Both In that particular case, it seems faster, but it should take the same amount of time (approx) because once templates are pre-populated, all the work is made by |
I tried to use parallelism to generate the HTML pages but the problem is that 1 As a curiosity, today is the anniversary of that issue. |
I have tried once again, just in case, but it's still failing: use Pod::Load;
use Pod::To::HTML;
my $pod = load("Endian.pod6")[0];
my @works = [];
for 1..255 { @works.push: $pod }
@works.race.map({
render($pod)
}) |
If you use 'visibility', the contents will expand the parent box leaving a gap. However, 'display' does not render the div block at all. Refs: #117
After creating the default template, generation time has increased up to 30 minutes, which is a big problem. I have come up with the following solution:
After measuring (approximately) the generation times, we get:
The text was updated successfully, but these errors were encountered: