Блог пользователя Dontony

Автор Dontony, история, 6 лет назад, По-английски

Recently my simple code in sublime text is taking up a lot of time to compile and run. Like for simple taking input an array and then printing it, sublime is taking about 7-8 secs. It doesn't always happen but when it happens during a short contest it's frustating. Can anyone suggest me ways to decrease the compile time? Thanks for noticing this blog.

  • Проголосовать: нравится
  • +11
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

Some steps that you can take:

  1. Uninstall your antivirus, because every time your cpp file is executed, the antivirus checks it and this is the reason it sometimes takes 7-8 s.

  2. precompile headers in the sublime text if not done.

In my case, the problem was with antivirus.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

Use WSL rather than CMD to compile.