all: code refactor remove unused headers (reduce compile-build time)
Code refactor commits, also reduces time spent on file preprocessing by C/C++ compilers, especially useful for contributors and users source-based distros like Gentoo.
Please don't be lazy to test PR with your Meson configuration, I might have missed or not covered everything.
As soon as I finish full PR, I'll lay out benchmarks for build speed between master branch and this PR.
It would be nice to check changes with Github Actions, but @metux is still offline.
Current results PR changes
When I wrote this post and benchmarking, PR was changing such number lines:
Build target: meson all
GCC version 14.2.0 (Debian 14.2.0-19)
- [X] ~5% decrease build time on my server configuration with 72 threads
PR:
master:
Clang version 19.1.7 (3)
- [X] ~6% decrease build time on my server configuration with 72 threads
PR:
master:
@metux, I haven't cleaned up everything yet, and I'd better close this PR and move using patches to separate PRs so that it's easier for people to code review and test changes.
@GermanAizek needs rebase