























@wszqkzqk as you can see from these tests.. there is no need in these flags. optimized script runs slower than a default one. I am not asking you for anything.
@AnotherAURUser According to Arch Linux's custom, please modify your compiler flags in you own makepkg.conf instead of asking each package to do so.😊
ok @wszqkzqk, here is the answer:
=== SIMPLIFIED OH-MY-POSH BENCHMARK ===
[1/5] Basic prompt generation test
Using theme: catppuccin.omp.json
Optimized: avg=0.001562s
Non-optimized: avg=0.001553s
Improvement: -0.61%
[2/5] Rapid generation test (2000 runs)
Optimized: total=3.123s, avg=0.001562s
Non-optimized: total=3.111s, avg=0.001555s
Total improvement: -0.40%
[3/5] Multi-theme comparison
Theme 1: catppuccin.omp.json
Opt: 0.001568s, Non-opt: 0.001553s
Improvement: -0.94%
Theme 2: peru.omp.json
Opt: 0.001557s, Non-opt: 0.001552s
Improvement: -0.31%
Theme 3: the-unnamed.omp.json
Opt: 0.001560s, Non-opt: 0.001552s
Improvement: -0.49%
[4/5] Multi-threaded stress test (2000 runs, 2 threads)
Optimized: avg=0.003148s
Non-optimized: avg=0.003127s
Improvement: -0.67%
[5/5] Binary size comparison
Optimized binary: 22,222,616 bytes
Non-optimized binary: 27,313,752 bytes
Size reduction: 18.64%
=== BENCHMARK COMPLETE ===
At least now it's possible to find peace, if one craves more optimization.
@AnotherAURUser You can maintain the CFLAGS in your own /etc/pacman.conf instead of change the packaging process.
@AnotherAURUser If there is no strong evidence that the performance improvement is significant, I would prefer to follow Go package guidelines.
guys, what if update code like this:
build() {
export CC=clang
export CXX=clang++
export CGO_CPPFLAGS="${CPPFLAGS} -O3 -march=native -flto"
export CGO_CFLAGS="${CFLAGS} -O3 -march=native -flto"
export CGO_CXXFLAGS="${CXXFLAGS} -O3 -march=native -flto"
export CGO_LDFLAGS="${LDFLAGS} -O3 -march=native -flto"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
cd "$pkgname-$pkgver/src"
go mod download
go build -gcflags="all=-l=4 -d=ssa/check_bce/debug=0" \
-ldflags="-linkmode=external -s -w \
-X github.com/jandedobbeleer/oh-my-posh/src/build.Version=$pkgver \
-X github.com/jandedobbeleer/oh-my-posh/src/build.Date=$(date +%F) \
-extldflags=-Wl,-O3" \
-o "$pkgname"
}
will it bring more performance? kinda want to add only optimized things into cachyos
oh-my-posh completion is not supported anymore because of github issue 6103. And I do not find any replacement for it. So I think we may have to remove those completions in package or patch the source to revert the commit .
gcc is not needed in the makedepends field. It's in base-devel.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
@AnotherAURUser Oh, yes.
-O3sometimes is not as effective as-O2. Anyway, let's keep it as it is and follow Arch Linux's custom.