Very slow startup of Frepascal programs on just one system

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Very slow startup of Frepascal programs on just one system

Zaaphod

I am experiencing very slow startup of all of my freepascal programs for windows on just one computer.  Normally they all start pretty much instantly, but I just got a brand new Dell XPS desktop computer and they are all starting up VERY slowly,  even simple console programs…. Even ‘Hello World’  take over 50 full seconds to start, even when running from a RAM Drive.   Does anyone have any idea what could be going on to cause such a slowdown?    They all run faster than this on an ancient XP computer, I don’t understand what’s taking so long on this new PC.     All my programs are compiled with FPC 3.0.4rc1 and normally start instantly even on my slowest windows tablet pc… except for this new computer, and everything else on this computer starts very fast,  it’s only all of my freepascal programs that start very very slow.  Once my programs finally…… eventually…. Get around to starting, they execute just fine,  no further delay in processing, disk access, or graphics.   I thought it might be smart screen or a virus scanner causing the delay, so I turned those off,  still have a huge delay. No matter what I do, every freepascal program I have ALWAYS takes at least 50 seconds to start on this system.

 

The system is this one: https://www.dell.com/en-us/work/shop/desktop-and-all-in-one-pcs/xps-tower-special-edition/spd/xps-8930-se-desktop/cto8930w10pcfl4h?ref=569_prodTitle  but it has been upgraded to 64GB of RAM, and a solid state hard drive.   The processor is Intel Core i7-8700K @3.7GHz and is running windows 10 Pro 64bit.  This should be the fastest computer I have, yet it’s the only one with this issue.

 

Hello world program is this:

Begin

Writeln('Hello World');

Readln;

End.

 

Any ideas on what may be going on?   This is pretty much un-usable with these huge delays every time I need to start one of my freepascal programs.  

 

 


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Very slow startup of Frepascal programs on just one system

Marco van de Voort
In our previous episode, James said:
> Does anyone have any idea what could be going on to cause such a
> slowdown?  

Pretty much only security software/anti virus.

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Very slow startup of Frepascal programs on just one system

Free Pascal - General mailing list
In reply to this post by Zaaphod
James <[hidden email]> schrieb am Mi., 22. Aug. 2018, 11:06:

Any ideas on what may be going on?   This is pretty much un-usable with these huge delays every time I need to start one of my freepascal programs.  

As a test try to disable your anti virus and/or Windows Defender. 

Regards, 
Sven 


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Very slow startup of Frepascal programs on just one system

Tomas Hajny-2
In reply to this post by Zaaphod
On Wed, August 22, 2018 11:06, James wrote:


Hello,

> I am experiencing very slow startup of all of my
> freepascal programs for windows on just one computer.
 .
 .

Does the same happen for GUI programs compiled with FPC on that machine?

Tomas


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Very slow startup of Frepascal programs on just one system

Zaaphod
>Does the same happen for GUI programs compiled with FPC on that machine?
I don't have any FPC GUI programs, they are all console programs, some console with ptcgraph....

>As a test try to disable your anti virus and/or Windows Defender.

>Pretty much only security software/anti virus.

Yes that is what it was... there was some free trial of Mcafee antivirus preinstalled on this system, and it had a feature that scanned every single file every time it was opened... I have NO idea how they can possibly take over 50 seconds to scan a 70KB hello world program, they have an severe bug in their scanner, it's a silly feature anyway, because if you scan every file as it's put on the system, they why do you need to scan it again every time you use the file.   Anyway the free trial was going to expire in 2 days anyway, and the delay was completely unacceptable, so I just removed the entire thing and activated windows defender and now everything is running normally.

Thanks everyone for the help getting to the problem!

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal