Re: .Net applications, not optimized for CPU at all?
- From: Andre Kaufmann <andre.kaufmann.bei@xxxxxxxxxxx>
- Date: Sun, 30 Apr 2006 11:20:19 +0200
Eric Grange wrote:
> then you already saved disk space vs native win 32 apps with .net apps
How so? I mean apart from 'hello world' class of applications (which are comparable to the size of Delphi when using BPLs),
I don't want to prove the opposite, and yes, I know the table holds the size of a "hello world" application. (I need only the first 2 entries).
Delphi 2005 VCL.NET 1239 KB
Delphi 2005 VCL.NET (VCL referenced): 8 KB
Delphi 2005 VCL native 365 KB
Delphi 2005 WinForm 23 KB
Delphi 2005 -"- packages 15 KB
C#2.0 16 KB
Not representative, but as you see from the table above I can compile the .NET sample to 1239 KB or to 8 KB by referencing the VCL.NET dll or not.
And the version without BPLs is 365 KB.
So if you distribute 50 Delphi applications you would have to install the VCL BPLS to a central system directory to save space.
The .NET framework will be installed to a central system directory.
the .Net EXE and DLL didn't strike me as being particularly lean at all compared to native versions.
Regarding native applications I have a nice example:
C++ application: (same Source code)
Compiler#1: 1 MB
Compiler#2: 3 MB
So even there are very large differences.
The .Net DLLs especially are huge, things like Tao.OpenGL, at 2 MB+, is
Are that VCL applications compiled to .NET ? If so why should they be significantly smaller. And if so is the VCL.NET package shipped or linked directly into the executable / dll.
about 10 times the size of the equivalent Delphi *DCU*, and even
10 times is quite a large overhead, which cannot be explained only by the additional meta data, which is shipped with an assembly. Only if the VCL.NET or other code is not referenced, but compiled into it ?
[...] Eric
But why are we comparing executable sizes ?
IMHO IL code should be always a bit larger or comparable in size to the equivalent native assembly code.
But that's the problem: what is equivalent code ?
One the uses VCL code and is compiled to both native and .NET or one that uses either VCL or .NET framework (WinForms etc.) ?
IMHO we are comparing apples with oranges in this thread.
Andre
.
- Follow-Ups:
- Re: .Net applications, not optimized for CPU at all?
- From: Eric Grange
- Re: .Net applications, not optimized for CPU at all?
- From: Marco van de Voort
- Re: .Net applications, not optimized for CPU at all?
- References:
- .Net applications, not optimized for CPU at all?
- From: Arthur Hoornweg
- Re: .Net applications, not optimized for CPU at all?
- From: Euan Garden
- Re: .Net applications, not optimized for CPU at all?
- From: Arthur Hoornweg
- Re: .Net applications, not optimized for CPU at all?
- From: Euan Garden
- Re: .Net applications, not optimized for CPU at all?
- From: Eric Grange
- .Net applications, not optimized for CPU at all?
- Prev by Date: Re: Suggestoins for Local DB to use with Shareware
- Next by Date: just for fun: it's so GREAT delphi (2006) !!!!!!!!!!!!
- Previous by thread: Re: .Net applications, not optimized for CPU at all?
- Next by thread: Re: .Net applications, not optimized for CPU at all?
- Index(es):
Relevant Pages
|