相关疑难解决方法(0)

为什么Cygwin执行shell命令的速度非常慢?

只需测试一个非常简单的命令:

while true; do bash -c "echo hello"; done
Run Code Online (Sandbox Code Playgroud)

你会发现Cygwin中的bash有多慢.有人知道为什么吗?

这是win7上cygwin 1.7的全新安装.

感谢Jared的测试理念,我将命令修改为此(添加bash -c):

time for i in {1..10} ; do bash -c "echo Hello" ; done
Hello
...
real 0m7.711s //it's the problem
user 0m0.091s
sys 0m0.476s
Run Code Online (Sandbox Code Playgroud)

bash cygwin

18
推荐指数
4
解决办法
3万
查看次数

通过 Cygwin 运行 Windows .EXE 本质上比通过 BAT 慢吗?

我们正在通过 Cygwin 脚本运行 Windows .EXE 文件,并且遇到性能问题。我看过有关 Cygwin 性能问题的各种帖子,包括这篇文章,其中一篇答案深入研究了 Cygwin 的内部结构,让我认为可能存在问题。然而,这些帖子似乎更多地涉及启动时间、选项卡完成等。在我们开始基准测试之前,我希望问:是否有任何内在原因导致 Windows .EXE 如果从以下位置启动,运行速度会变慢: Cygwin 与 BAT?

windows performance cygwin batch-file

5
推荐指数
1
解决办法
697
查看次数

如何在windows上改善babun zsh的加载时间?

我喜欢ZSH shell及其主题,但它非常慢.加载需要7到10秒.我也将它用作VS Code中的集成终端,即使加载速度很慢.这是我的.zshrc文件的副本.

# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
export PS1="[%* - %D] %d %% "


# Set name of the theme to load. 
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
DEFAULT_USER=13000

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"

# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be …
Run Code Online (Sandbox Code Playgroud)

cygwin zsh zshrc oh-my-zsh babun

5
推荐指数
1
解决办法
3503
查看次数

标签 统计

cygwin ×3

babun ×1

bash ×1

batch-file ×1

oh-my-zsh ×1

performance ×1

windows ×1

zsh ×1

zshrc ×1