xserver icon indicating copy to clipboard operation
xserver copied to clipboard

all: code refactor remove unused headers (reduce compile-build time)

Open GermanAizek opened this issue 8 months ago • 3 comments

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.

GermanAizek avatar Jun 09 '25 06:06 GermanAizek

Current results PR changes

When I wrote this post and benchmarking, PR was changing such number lines: image

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: image

master:

image

Clang version 19.1.7 (3)

  • [X] ~6% decrease build time on my server configuration with 72 threads

PR: image

master: image

GermanAizek avatar Jun 11 '25 13:06 GermanAizek

@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 avatar Jun 11 '25 13:06 GermanAizek

@GermanAizek needs rebase

metux avatar Nov 26 '25 15:11 metux