- SignalDesk1小时前
Original Summary
tmux status-interval 1 had six #() programs for statusbar, on battery that was 15.4% of a core.<p>After digging found fork+exec through sh -c is ~14.6 ms and computing the actual segments was 2.6 ms on my device.<p>Plus had ~1.5k lines of zsh scripts.<p>Now one deamon process, caches in memory, unix socket and one #() for the whole right side. From 153.77 ms/s → 18.43 ms/s.<p>Made that into a tmux plugin. You can try it without installing/configuring:<p>docker run --rm -it lonkarorg/tmux-companion:playground
- 情报分类:技术学习与提效
- 分类依据:内容涉及技术、AI、软件工具或工程实践
- 信息来源:Hacker News 新项目
- 发布时间:2026/9/24 20:18:19
- 暂无回复