惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
The GitHub Blog
The GitHub Blog
小众软件
小众软件
美团技术团队
博客园 - 司徒正美
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
大猫的无限游戏
大猫的无限游戏
罗磊的独立博客
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
D
Docker
J
Java Code Geeks
Last Week in AI
Last Week in AI
V
Visual Studio Blog
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
V
V2EX
C
Check Point Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MyScale Blog
MyScale Blog

AUR Newest Packages

AUR (en) - linuxqq-clipsync-git AUR (en) - libtslitex-git AUR (en) - libtslitex-git AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - vigil-baseline AUR (en) - byedroid AUR (en) - neovim-base16-git AUR (en) - pirata AUR (en) - rpi-imager-git-non-root AUR (en) - python-fastapi-sso AUR (en) - tmux-ai-titles AUR (en) - zeed-bin AUR (en) - bclone-bin AUR (en) - dwl-git-azerty AUR (en) - auggie-bin AUR (en) - libspatialaudio-git AUR (en) - libspatialaudio AUR (en) - miniupnpd-iptables-legacy AUR (en) - miniupnpd-nft AUR (en) - jeeves-bin AUR (en) - opennow AUR (en) - rotki AUR (en) - kapi-bin AUR (en) - classfi-bin AUR (en) - classfi-git AUR (en) - classfi AUR (en) - giff-git AUR (en) - budget-tracker-bin
AUR (en) - oh-my-posh
2026-06-13 · via AUR Newest Packages

ItachiSan commented on 2026-01-25 13:37 (UTC) (edited on 2026-01-25 13:55 (UTC) by ItachiSan)

wszqkzqk commented on 2025-06-14 15:06 (UTC) (edited on 2025-06-14 15:06 (UTC) by wszqkzqk)

@AnotherAURUser Oh, yes. -O3 sometimes is not as effective as -O2. Anyway, let's keep it as it is and follow Arch Linux's custom.

AnotherAURUser commented on 2025-06-14 15:03 (UTC) (edited on 2025-06-14 15:05 (UTC) by AnotherAURUser)

@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.

wszqkzqk commented on 2025-06-14 14:57 (UTC)

@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.😊

AnotherAURUser commented on 2025-06-14 14:37 (UTC) (edited on 2025-06-14 14:38 (UTC) by AnotherAURUser)

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.

wszqkzqk commented on 2025-06-14 13:17 (UTC)

@AnotherAURUser You can maintain the CFLAGS in your own /etc/pacman.conf instead of change the packaging process.

wszqkzqk commented on 2025-06-14 13:13 (UTC)

@AnotherAURUser If there is no strong evidence that the performance improvement is significant, I would prefer to follow Go package guidelines.

AnotherAURUser commented on 2025-06-14 13:10 (UTC) (edited on 2025-06-14 13:11 (UTC) by AnotherAURUser)

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

ZhangHua commented on 2025-02-27 13:07 (UTC)

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 .

brody commented on 2025-01-20 17:13 (UTC) (edited on 2025-01-20 17:13 (UTC) by brody)

gcc is not needed in the makedepends field. It's in base-devel.