'Why there is a delay in running a console application just created?

I have noticed this for a while. After building a cpp console application, when i run it through command prompt, the first time it takes some time to run. The second time, third time, etc it runs instantly. Why this delay? Can anything be done?



Solution 1:[1]

Turned off the 'Real Time Protection' in my antivirus and this problem was solved.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 habi