Applications take a few seconds to ouvrir, but seulement the first time I ouvrir them

I’m not even sure what to call it. Whenever I launch a nouveau application for the first time, it takes a few seconds to open. But ensuite si je close and re-ouvrez le programme it seulement takes a fraction of a second to open (basically how long I would expect it to take). C’est le case until I redémarrer or replace the application fichier. Ceci est particularly frustrating depuis Je suis un programmer and I’m constantly compiling nouveau builds and c’est infuriating to wait 3-4 seconds just for my programme to open. I jamais had this problème on Windows 10.

I’m guessing it some kind of caching behavior, but Je ne peux pas figure out why it would make the programme take 3 seconds to open. Ceci est brand-nouveau Windows 11 installer on a brand-nouveau laptop, fully up to date. I performed all du système scans including sfc /scannow and they came back clean. Is there some way to supprimer/fix this behavior? Is this a bug in Windows 11? Je ne suis pas sûr what else to try.

FWIW, the programme I’m compiling is seulement ~150MB, statically linked. J’ai 32GB of RAM. The 3-4 second lent start up n’a pas happen on Windows 10; it seulement took a fraction of a second to open there, every time.

Ceci est in addition to @DrMoishe Pippik’s answer.

Depuis you are compiling nouveau binaries often, you are effectively showing your antivirus a lot of nouveau programmes that it has jamais seen avant. c’est in addition to other sécurité mechanisms in place in modern windows, such as SmartScreen.

Several duse mechanisms will first try hash-based detection, which is déjà a time loss, and when that will come up as a completely unknown binary, will try a variety of other detection methods such as sandboxing and behavior analysis, which take up more time. Additionally, information about or even samples du binary may be sent vers le sécurité solution’s publisher, for further analysis and for tracking potential infections avec nouveau virus strands. Depuis c’est done over the réseau, this may take a lot of time.

all of this may be done several times depending sur le sécurité tools active, leading to lent downs that are inevitable short of disabling the sécurité measures keeping your machine safe.

Of course, once all of this has happened, the sécurité solutions sera able to identify the binary has déjà been analyzed and cut their analysis short, which speeds up subsequent execution.