Windows10 Command Prompt window sizes result in the execution efficiency of different issues

1. Problem Description

  This problem is very strange, strange I did not even think to.

  Please do so to this day, I am using the command prompt to create a Vue project npm, suddenly saw why the virtual machine virtual machine in the same environment to create a project to speed so fast?

  A progress bar card a card to build Vue project, supposedly turning the stick but quickly move about the card three seconds to create an empty project but two or three minutes, and it took me a full fifteen minutes.

  

  My heart is very irritable, What the hell?

  I re-ran it again, Caton still, under irritability, Enter key and the spacebar suffered unexpected calamities.

  Then stared a message of up to two minutes did not jump. I put the window down below the scroll bar pulled back, saw the amazing (45000ms).

  Before I give him shots taken, information began to progress fast transition, completely without a card thirty-four seconds before look.

  I started to think that a coincidence, in front of which is to load very slow. But my curiosity is not irritable spend, so he began a new attempt.

  

  Delete the project file, and then clean out Node caching, load webpack, every building project before repeating the operation, in order to ensure a relatively fair test.

  This time I'll just start building the scrollbar at the bottom of the window, pulled the last, amazing scene appeared, the project build process, the loading information changes quickly, the original moving about three seconds card stick becomes one second Zhong turn a small whirlwind ten when the (laughs).

  

  I realized that things could please not so simple.

  The next step is to test other commands, the same time with a single command, a small window and full screen brought the gap is already quite scary.

  

  Later joined the command prompt in administrator mode later, many cases will lead to a command card refuses to move, so that the effect of the administrator mode than ordinary user mode.

 

2. Reasons

  This kind of thing because only a single computer system, so I would not be able to verify what can only be considered from several angles.

  ① CMD born BUG, ​​resulting in a small window and have different sales to execute commands in full screen.

  ② Windows10 system BUG.

  ③ Hardware reasons: hard disk, processor, memory, and the like, but I think it is unlikely.

  ④ Node itself BUG cause for CMD window under different states have different responses, but I think this one with the first meaning.

 

3. Solution

  由于没法验证到底是哪个错误,所以只能用最笨的办法,执行命令行任务的时候就使用全屏模式,加快执行效率。

  最后还是希望碰巧看到的朋友,能愿意抽出宝贵的时间进行测试一下,将结果留言给我综合判断,找出问题所在,那真的是非常感谢。

  我也会继续追查下去,争取查一个水落石出。

Guess you like

Origin www.cnblogs.com/NyanKoSenSei/p/12323862.html