Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi-32 environment becomes very slow

Tags:

delphi

I am running Delphi 5 on a 32-bit PC which recently had Windows 10 installed. The Delphi environment has become extremely slow.

Running in debug mode with Task Manager visible shows that it's consuming about 35% of CPU while running an already compiled program and taking a minute or more to load the main screen where it used to take about 5 - 10 seconds at the most.

Running the executable outside the environment is as fast as it has always been. Anyone else encountered this?

like image 680
ron Avatar asked Jul 27 '17 16:07

ron


People also ask

Why is Delphi so slow?

A large part of the reason it runs slowly is that Windows 10 requires large amounts of RAM, and running a 32-bit version by definition limits it to 4GB of RAM max.

Is Delphi slow?

Delphi is known for its fast build speeds, at least for Win32 apps. But when you compile your same FireMonkey app for other platforms, the build time increases dramatically and can be up to 15 times slower.


1 Answers

This is known issue affecting all Delphi versions running on Windows 10 Creators update.

Non-functional debugger after updating to Windows 10 Creators https://quality.embarcadero.com/browse/RSP-17972

The debugger goes haywire for everyone in our organization with Creators and Tokyo/Berlin. Reverting to Windows Anniversary brings back the sanity.

Debugger problems with Tokyo/Berlin and Creators:

App takes a long time to load with modules loading and unloading and re-loading many times

IDE freezes

Memory consumption of bds.exe explodes, sometimes (> 3GB)

I will attached before and after screenshots showing how modules load and unload and re-load with Windows 10 Creators.

I presume these problems have the same root cause(s) than those in https://forums.embarcadero.com/thread.jspa?messageID=884382

Issue is caused by newly introduced optimizations in Windows dll (bpl) loading. It does not affect standalone exe applications.

Embarcadero is working with Microsoft in fixing this in future Windows update and/or hotfix.

More info: http://blog.marcocantu.com/blog/2017-june-delphi-packages-creators-update.html

like image 158
Dalija Prasnikar Avatar answered Sep 25 '22 14:09

Dalija Prasnikar