You are not logged in.

#1 2025-03-31 23:13:58

apdim79
Member
Registered: 2025-03-31
Posts: 3

All KDE packages are built without optimizations!!!!!!!!

It seems that all the plasma packages (including kwin and plasmashell) are built without compiler optimizations. I can hardly imagine how much slower the system is compared to optimized builds.
Not to mention the increased battery drain from using unoptimized packages.

If you look at the plasma PKGBUILD files, like for example this one for KWIN:
https://gitlab.archlinux.org/archlinux/ … type=heads

the problem is that the CMake command does not specify a build type. CMake being a bit stupid, does not automatically set a build-type, so no compiler optimzation flags are passed.

KWin without optimizations has about 20-50% more battery drain (for itself), not to mention massively slower performance and smoothness.

Can we somehow update the 100's of packages affected?

This seems to affect other packages too.

Offline

#2 2025-03-31 23:40:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,641

Re: All KDE packages are built without optimizations!!!!!!!!

Quite the claim to make while not understanding how makepkg works with CFLAGS/CXXFLAGS/etc. Got any actual proof of this?

Offline

#3 2025-04-01 00:49:03

apdim79
Member
Registered: 2025-03-31
Posts: 3

Re: All KDE packages are built without optimizations!!!!!!!!

My bad, yes it seems that makepkg sets the correct flags for cmake, but if you follow the command on the PKGBUILD file, the resulting binary is not optimized.
Some debugging flags seem to be enabled though, like: _GLIBCXX_ASSERTIONS


Here are the flags that are set through makepkg:
CMAKE_BUILD_TYPE:STRING=
CMAKE_CXX_FLAGS:STRING=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/apo/plasma-desktop/src=/usr/src/debug/plasma-desktop -flto=auto
CMAKE_CXX_FLAGS_DEBUG:STRING=-g

Last edited by apdim79 (2025-04-01 00:53:36)

Offline

#4 2025-04-01 01:44:34

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,641

Re: All KDE packages are built without optimizations!!!!!!!!

And how are you claiming that -O2 results in no optimization?

Offline

#5 2025-04-01 01:49:43

apdim79
Member
Registered: 2025-03-31
Posts: 3

Re: All KDE packages are built without optimizations!!!!!!!!

I don't like this attitude, I am far too old for this. If you want to continue building packages with debug flags so be it.

Offline

#6 2025-04-01 01:56:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,641

Re: All KDE packages are built without optimizations!!!!!!!!

You don't come in with questions, you come in with statements and accusations. It's up to you to back them up, I'm only returning your own attitude.

Offline

#7 2025-04-01 02:07:55

mackin_cheese
Member
Registered: 2025-01-07
Posts: 475

Re: All KDE packages are built without optimizations!!!!!!!!

Scimmia wrote:

You don't come in with questions, you come in with statements and accusations. It's up to you to back them up, I'm only returning your own attitude.

You forgot to add the 10 exclamation points at the end of your statement

Offline

#8 2025-04-01 03:08:54

V0VC
Member
Registered: 2024-05-30
Posts: 11

Re: All KDE packages are built without optimizations!!!!!!!!

That would be quite the oversight, if true.

Offline

#9 2025-04-01 06:47:15

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,782

Re: All KDE packages are built without optimizations!!!!!!!!

… I can hardly imagine how much slower the system is … Not to mention the increased battery drain …
KWin … has about 20-50% more battery drain (for itself), not to mention massively slower performance and smoothness.

On the premise that this isn't just a trolling shitpost and the genuine perception is that your compositor is slow and uses a lot of CPU:

qdbus org.kde.KWin /KWin supportInformation
glxinfo -B

If you want to continue building packages with debug flags so be it.

https://wiki.archlinux.org/title/Debuginfod

I am far too old for this.

The 79 in your nick is better your age and not your year of birth then…

mackin_cheese wrote:

You forgot to add the 10 exclamation points at the end of your statement

No need to go completely overboard - the OP constrained himself to 8 tongue

Speaking of which, @apdim79:
Edit your initial post and fix the subject - the claim is contradicted by your own #3, the exclamation points infantile and the subject should summarize your problem/symptoms.

Online

Board footer

Powered by FluxBB