7
我運行在Ubuntu的腳本,並測試其時間:爲什麼在cygwin這麼慢
$ time ./merger
./merger 0.02s user 0.03s system 99% cpu 0.050 total
它花了不到1秒。 但如果我用的cygwin:
$ time ./merger
real 3m22.407s
user 0m0.367s
sys 0m0.354s
它花了超過3分鐘。 這是爲什麼發生?我該如何提高cygwin的執行速度?
與Linux相比,Windows上的產卵過程非常緩慢 - cygwin可以做的很多事情來解決這個限制。 –
檢查是否[此](http://stackoverflow.com/questions/2835775/msysgit-bash-is-horrendously-slow-in-windows-7)有幫助。 –
@PaulR,但我不認爲這會導致3分鐘的滯後。我認爲當OP嘗試這些時,還有其他進程在Windows中運行。或者他在程序中使用了Windows和Linux中顯着不同的東西。 –