Dontony's blog

By Dontony, history, 6 years ago, In English

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.

  • Vote: I like it
  • +11
  • Vote: I do not like it

| Write comment?
»
6 years ago, hide # |
 
Vote: I like it +10 Vote: I do not like it

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 years ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

Use WSL rather than CMD to compile.