Task #358: Better package our work
Tune DansGuardian at startup on CPU bogomips
On low end devices, such as Efika, we had to change the default settings of DansGuardian to get it render pages faster. The list of tested languages has been reduced and the scan parameters have been changed to avoid re-parsing the pages several times for the same language. This latest parameter could be tuned at startup taking into account the CPU speed in bogomips:
$ cat /proc/cpuinfo | grep bogomips
bogomips : 2009.96
This way no need to lower the security level on more recent hardware :).