Skip to content

perf: improve windows and foreground usage performance#64

Merged
Loongphy merged 18 commits intomainfrom
perf-windows-performance
Apr 19, 2026
Merged

perf: improve windows and foreground usage performance#64
Loongphy merged 18 commits intomainfrom
perf-windows-performance

Conversation

@Loongphy
Copy link
Copy Markdown
Owner

@Loongphy Loongphy commented Apr 18, 2026

  • replace the Windows scheduled-task PowerShell path with Task Scheduler COM
    • Windows list: 169.53 ms -> 116.59 ms (-31.2%)
    • Windows remove(active): 168.21 ms -> 108.28 ms (-35.6%)
  • fix the Zig 0.16 FS/runtime IO path that caused Node.js OutOfMemory
  • batch foreground usage refresh in one Node process for list, switch, and remove
    • list total: 10123.18 ms -> 1780.36 ms (-82.4%)
    • switch mean: 8285.53 ms -> 1471.98 ms (-82.2%)
    • remove mean: 6740.66 ms -> 1845.13 ms (-72.6%)

Replace the Windows managed-service path with direct Task Scheduler COM calls, update Zig 0.16.0 integration, and record before/after Windows benchmarks under benchmark/.
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 18, 2026

Open in StackBlitz

@loongphy/codex-auth-darwin-arm64

npx https://pkg.pr.new/@loongphy/codex-auth-darwin-arm64@64

@loongphy/codex-auth-darwin-x64

npx https://pkg.pr.new/@loongphy/codex-auth-darwin-x64@64

@loongphy/codex-auth-linux-arm64

npx https://pkg.pr.new/@loongphy/codex-auth-linux-arm64@64

@loongphy/codex-auth-linux-x64

npx https://pkg.pr.new/@loongphy/codex-auth-linux-x64@64

@loongphy/codex-auth-win32-arm64

npx https://pkg.pr.new/@loongphy/codex-auth-win32-arm64@64

@loongphy/codex-auth-win32-x64

npx https://pkg.pr.new/@loongphy/codex-auth-win32-x64@64

@loongphy/codex-auth

npx https://pkg.pr.new/@loongphy/codex-auth@64

commit: d24b1bd

@Loongphy Loongphy force-pushed the perf-windows-performance branch from eb37431 to 936f516 Compare April 19, 2026 09:58
@Loongphy Loongphy merged commit 89d7b4b into main Apr 19, 2026
8 of 9 checks passed
@Loongphy Loongphy deleted the perf-windows-performance branch April 19, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant