Hi,
I notice strange problem: LiteDac increase exe size to 65 megabytes !!! in C++Builder Berlin for Win64 platform.
Steps to reproduce:
1. New C++Builder VCL forms application.
2. Place TLiteConnection and TLiteScript on form
3. Select Windows 64 platform.
4. In project options uncheck Link with dynamic RTL and Link with Runtime Packages.
5. Build configuration Release
After building project exe size will be about 65 !!!!! megabytes ! Is it's normal ???
For Windows 32 platform with same project settings exe size will be only 5 mb !
Delphi project Win64, Link with Runtime Packages disabled - exe size 7.2 mb
Delphi project Win32, Link with Runtime Packages disabled - exe size 4.4 mb
Any workaround to decrease exe size for C++Builder Win64 platform ?
C++Builder Berlin Win64 platform + LiteDac = giant exe size
-
- Posts: 20
- Joined: Sun 05 Jun 2016 17:11
Re: C++Builder Berlin Win64 platform + LiteDac = giant exe size
Hello,
You can observe approximately similar difference on an empty project as well, this doesn't depend on our components.
You can observe approximately similar difference on an empty project as well, this doesn't depend on our components.
-
- Posts: 20
- Joined: Sun 05 Jun 2016 17:11
Re: C++Builder Berlin Win64 platform + LiteDac = giant exe size
No similar difference ! Empty C++Builder Win64 project produce 7.8 mb exe sizeYou can observe approximately similar difference on an empty project as well, this doesn't depend on our components.
Adding TLiteConnection to empty project increase exe size to 65 mb !
My app uses DevExpress QuantumGrid/TreeList, RealThinClientSDK, Toolbar2000 and some other components. Exe size is about 20 mb. But after adding TLiteConnection exe size increased to 85 mb ! Removing TLiteConnection decrease exe size back to 20 mb.
So, exactly LiteDac adds 65 mb to exe size for windows 64 bit platform.
Please perform this simple steps to reproduce problem:
1. Create new C++Builder VCL forms application
2. Set Build Configuration = Release
3. Set platform Windows 64
4. Add TLiteConnection on form
5. In project options uncheck Link with dynamic RTL and Link with Runtime Packages to link everything to exe.
6. Build project.
7. Look at exe size. It's will be about 65 megabytes.
If you build this project with same settings for Win32 platform exe size will be only 5 megabytes.
For windows 64 it's should be about 9-12 mb, but not 65 mb ! It's not normal. And it's happens only with LiteDac.
p.s. Problems happens with RAD Studio 10.1 Berlin.
Re: C++Builder Berlin Win64 platform + LiteDac = giant exe size
It's due to the IDE, we have reported the problem to Embarcadero QualityCentral:
https://quality.embarcadero.com/browse/RSP-15882
https://quality.embarcadero.com/browse/RSP-15882