So a first sampling using VisualVM give me the following result (after 1 hour running)
I find specially weird the time spent in Unsafe#park() and that synthetic accessor.
I will take a look while application hangs in debug mode ...
Just a quick followup
I paused my application in debug while it was "hanged" and discovered that the hang was due to very slow call to ?seq_contains (on this line https://github.com/Riduidel/lifestream/blob/master/my-lifestream/src/main/jbake/templates/tags.ftl#L36).
I discovered it was slow because freemarker, when concatenating sequences, was in fact doing some kind of facade sequence : the returned sequence contains a left and right segment, each one being potentially a sequence itself.
As a consequence, when rendering big tag pages (like this one http://nicolas.delsaux.free.fr/lifestream/tags/web.html), there is a very deep stack of sequence objects that has to be navigated in each post rendering ... Yup, it's more than a O(n²). Removing the three lines reduced build time to 17 minutes, so I think I'm gonna remove that big list of tags at the end of the tag page ...
As a consequence, I would suggest that, for big JBake projects,
don't do crazy things in templates 😉
--
You received this message because you are subscribed to the Google Groups "JBake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbake-user+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jbake-user/8b344faa-132a-3df4-674d-454c35226115%40gmx.fr.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jbake-user/20750c7a-6e11-82d3-f089-b907e0c80000%40gmx.fr.
Would be nice to have some statistics somewhere, maybe through a custom template.
Anyway, Windows tell me that the generated JBake site, it is
* 223 Mo (no images are included)
* 461 folders
* 12076 files
It generates in roughly 20 minutes.
I have not thought about switching to groovy templates, even if I know quite well Groovy, because I find the documentation of Freemarker incredibly good.
And I think that, at this size, I would be very happy to have some kind of parallel processing of templates. Because I see pages appearing at a 1 page/second rate, and I think it could be waaayyy faster if parallel'd
Anyway, it works really well and renders nicely (once again, take
a look at http://nicolas.delsaux.free.fr/lifestream, which run on
free.fr homepage server - arguably as slow as a Raspberry 1, it
runs very well, renders nicely even with quite big HTML pages).
And that's thanks to JBake. So thank you all !
To unsubscribe from this group and stop receiving emails from it, send an email to jbake...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jbake-user/8b344faa-132a-3df4-674d-454c35226115%40gmx.fr.
--
You received this message because you are subscribed to the Google Groups "JBake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbake...@googlegroups.com.
Hello from the grave :-D
Considering my project exists since more than 8 years, and I only start now to consider automated deployment, I'm coming again at JBake to see what could possibily be optimized.
Because I plan to have it running on my Raspberry Pi 3, I need to seriously optimize things to have things running smoothly. And consider the generating process is killed each time by Raspbian.
So, I'm currently considering other course of things.
First, is it possible using JBake to have pages generated only when their source content change ?
Second, do you know how to have archives generated by date, instead of a paginated list of all pages
And finally, specifically for Frank, have you had any progress into your parallelization of JBake processing ? This would make things faster.
Oh, and to have some progress, I know have
* 269 Mo
* 1303 folders (tags make that folder number grow fast)
* 14417 files !
To unsubscribe from this group and stop receiving emails from it, send an email to jbake-user+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jbake-user/de85b827-8049-42f0-b47f-1d4bbb636579%40googlegroups.com.