C++Builder Berlin Win64 platform + LiteDac = giant exe size

Discussion of open issues, suggestions and bugs regarding LiteDAC (SQLite Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Max Terentiev
Posts: 19
Joined: Sun 05 Jun 2016 17:11

C++Builder Berlin Win64 platform + LiteDac = giant exe size

Post by Max Terentiev » Fri 09 Sep 2016 03:05

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 ?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: C++Builder Berlin Win64 platform + LiteDac = giant exe size

Post by AlexP » Fri 09 Sep 2016 13:50

Hello,

You can observe approximately similar difference on an empty project as well, this doesn't depend on our components.

Max Terentiev
Posts: 19
Joined: Sun 05 Jun 2016 17:11

Re: C++Builder Berlin Win64 platform + LiteDac = giant exe size

Post by Max Terentiev » Fri 09 Sep 2016 14:08

You can observe approximately similar difference on an empty project as well, this doesn't depend on our components.
No similar difference ! Empty C++Builder Win64 project produce 7.8 mb exe size
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.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: C++Builder Berlin Win64 platform + LiteDac = giant exe size

Post by AlexP » Wed 21 Sep 2016 12:23

It's due to the IDE, we have reported the problem to Embarcadero QualityCentral:
https://quality.embarcadero.com/browse/RSP-15882

Post Reply