Re: Report about converting my home site from wml to Template Toolkit

Shlomi Fish <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <[email protected]>
Hi all,

On Fri, 6 Sep 2019 14:20:50 +0300
Shlomi Fish <[email protected]> wrote:

> Hi all!
> 
> TL;DR: a partial conversion of the https://www.shlomifish.org/ 's sources from
> WML to [Template Toolkit 2](http://template-toolkit.org/) appears to have sped
> up the rendering, and also uncovered some broken content errors, but is/was
> very time consuming.
> 

I have now completed the transition and rebased wml2tt into master. Here are
the benchmarks of the rebuild command:

```
───────┬────────────────────────────────────────────────────────────────────────
       │ File: /home/shlomif/Arcs/homepage.old1.time.txt
───────┼────────────────────────────────────────────────────────────────────────
   1   │ 618.85user 52.79system 3:41.05elapsed 303%CPU (0avgtext+0avgdata 265704
       │ maxresident)k
   2   │ 944inputs+1483776outputs (1major+10228537minor)pagefaults 0swaps
───────┴────────────────────────────────────────────────────────────────────────
───────┬────────────────────────────────────────────────────────────────────────
       │ File: /home/shlomif/Arcs/homepage.old2.time.txt
───────┼────────────────────────────────────────────────────────────────────────
   1   │ 622.54user 53.48system 3:43.66elapsed 302%CPU (0avgtext+0avgdata 257388
       │ maxresident)k
   2   │ 256inputs+1484432outputs (1major+10222451minor)pagefaults 0swaps
───────┴────────────────────────────────────────────────────────────────────────
───────┬────────────────────────────────────────────────────────────────────────
       │ File: /home/shlomif/Arcs/homepage.new1.time.txt
───────┼────────────────────────────────────────────────────────────────────────
   1   │ Command exited with non-zero status 2
   2   │ 567.50user 40.99system 3:47.31elapsed 267%CPU (0avgtext+0avgdata 348052
       │ maxresident)k
   3   │ 17656inputs+1482280outputs (1major+7554065minor)pagefaults 0swaps
   4   │ 538.25user 40.95system 3:36.40elapsed 267%CPU (0avgtext+0avgdata 298024
       │ maxresident)k
   5   │ 864inputs+1482160outputs (0major+7424093minor)pagefaults 0swaps
───────┴────────────────────────────────────────────────────────────────────────
───────┬────────────────────────────────────────────────────────────────────────
       │ File: /home/shlomif/Arcs/homepage.new2.time.txt
───────┼────────────────────────────────────────────────────────────────────────
   1   │ 510.89user 39.69system 3:17.28elapsed 279%CPU (0avgtext+0avgdata 256244
       │ maxresident)k
   2   │ 520inputs+1482264outputs (0major+7173419minor)pagefaults 0swaps
───────┴────────────────────────────────────────────────────────────────────────
```

like I said, the build process has quite a bit of overhead. I have since
implemented some improvements.


> ---
> 
> My home site's sources ( https://github.com/shlomif/shlomi-fish-homepage ) are
> quite large (but probably much smaller than
> https://salsa.debian.org/webmaster-team/webwml/ ) and also has used
> [WML](https://github.com/thewml/website-meta-language) along with other
> technologies (some of which were created by me and made FOSS). A full rebuild
> of the site currently takes about 4 minutes on my sandy bridge Core i3 machine
> and it used to be much worse, before it was optimised.
> 


-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Perl Humour - http://perl-begin.org/humour/

Chuck Norris has 99 problems including a bitch.
    — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.