Hello, I’m relatively new to DietPi and new to this community. Not sure if this belongs under “General Discussion” or rather under “Requests”, imo the following is a bit of both…
First of all, I must say that I like the idea behind DietPi very much! Whether SBCs, a PC or an Android device - personally I hate when my system is cluttered with nonsense stuff I’ve neither needed nor chosen, even worse when it drains any kind of resources like performance power of my device, who actually doesn’t?
Although there is an aspect I do not really understand: The “optimized software” thing of DietPi.
As far as I understand, the “optimization” of certain software packages is currently limited to the configuration files only. Optimized config files can make (and surely they do!) some noticeable difference, even regardless of the OS one is using. But wouldn’t it be much more optimization of certain software, if it would be compiled device-specific (respectively cross-compiled although I’m not sure about that) for certain devices or if they share f.e. the same CPU/GPU-chip, device-families (like RaspberryPi 2-4 + Zero 2; RaspberryPi 5 separately)?
For example if a certain package (with libraries and executables f.e. coded in C/C++, i.e. something that isn’t just “compiled” into byte code like libs or executables written in Python or Java, not mentioning all the script-based ones ) contained in the DietPi image for f.e. RaspberryPi 5 (which has a CPU afaik different from the previous models, not even mentioning other ARM boards like BananaPi, OrangePi, etc.) would be (re-)compiled on it (or cross-compiled for it’s CPU, if that’s possible and would yield approx. the same results)? Wouldn’t it give it some noticeable boost in performance? Or at least the kernel & indispensable parts that run in userspace while performing critical tasks like systemd and so on?
Or would the improvement gain be more of a theoretical than practical kind i.e. barely noticeable? I understand that also due to the steadily growing list of supported devices it would increase the effort enormously.
But still, I’d like to know at least for myself - would the CPU-/device-specific re-compilation get any yield in performance, thus be an (additional) optimization on machine level or would it get only marginal optimization not profitable compared to the increased effort and work associated with the device-specific recompilation?
It would be cool if we could have some discussion here or so, because I’m sure that there are more than few experts in this community which may give everyone some advice regarding this topic! ![]()
Thanks in advance to everybody for any helpful comments, hints and support regarding this topic!